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:
15 - `$settings['uploaddir'] = '.';`
16 Directory to store the uploaded files. Defaults to rurrect script directory
18 - `$settings['listfiles'] = true;`
19 Option that will list all files in uploads directory. Enabled by default
24 - Click on upload message
25 - HTML5 Drag'and'Drop (via dropzone.js)
26 - No Javascript HTML Form fallback
27 - Upload using any compatible tool (like cURL)
29 This example will upload a file and copy URL to clipboard:
32 curl -F "file=@$(pwd)/file.jpg" http://yoir-host/sharing/ > xclip -sel clip