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 - `uploaddir` => `'.'`
17 Directory to store uploaded files
20 - `listfiles` => `true`
21 Display list uploaded files
24 - `listfiles_size` => `true`
28 - `listfiles_date` => `true`
32 - `listfiles_date_format` => `'F d Y H:i:s'`
33 Display file dates format
36 - `random_name_len` => `10`
37 Randomize file names (number of 'false')
40 - `random_name_keep_type` => `true`
41 Keep filetype information (if random name is activated)
44 - `random_name_alphabet` => `'qwertyuiodfgjkcvbnm'`
45 Random file name letters
49 Display debugging information
54 Directory to store the uploaded files. Defaults to rurrect script directory
57 Option that will list all files in uploads directory. Enabled by default
60 To display debugging information
64 - Through an interface:
65 - Choose files via dialogue
66 - Drop files, via HTML5 drag'and'drop (using [dropzone.js](http://www.dropzonejs.com/))
67 - Basic HTML Form (if no JavaScript is suported)
68 - Upload using any compatible tool (like cURL)
70 This example will upload a file and copy URL to clipboard:
73 curl -F "file=@file.jpg" your-host/sharing/ | xclip -sel clip