3 Simple single-file PHP file upload (file share hosting) script.
5 > :warning: **Security warning**: There is no limit on file size or file type. Please make sure that file permissions are set right so nobody can execute uploaded executables. Or exscape your desired directory!
9 Just drop a PHP file in any directory. It will work straight away
13 There are few options that you can change by editing the file itself:
16 Directory to store the uploaded files. Defaults to rurrect script directory
19 Option that will list all files in uploads directory. Enabled by default
22 To display debugging information
27 - Choose files via dialigue
28 - Drop files, via HTML5 drag'and'drop (using [dropzone.js](http://www.dropzonejs.com/))
29 - Basic HTML Form (if no JavaScript is suported)
30 - Upload using any compatible tool (like cURL)
32 This example will upload a file and copy URL to clipboard:
35 curl -F "file=@file.jpg" your-host/sharing/ | xclip -sel clip