There are few options that you can change by editing the file itself:
-- `$settings['uploaddir'] = '.';`
- Directory to store the uploaded files. Defaults to rurrect script directory
-- `$settings['listfiles'] = true;`
- Option that will list all files in uploads directory. Enabled by default
+
+- Directory to store uploaded files
+
+ `uploaddir` => `'.'`
+
+- Display list uploaded files
+
+ `listfiles` => `true`
+
+- Allow users to delete files that they have uploaded (will enable sessions)
+
+ `allow_deletion` => `true`
+
+- Display file sizes
+
+ `listfiles_size` => `true`
+
+- Display file dates
+
+ `listfiles_date` => `true`
+
+- Display file dates format
+
+ `listfiles_date_format` => `'F d Y H:i:s'`
+
+- Randomize file names (number of 'false')
+
+ `random_name_len` => `4`
+
+- Keep filetype information (if random name is activated)
+
+ `random_name_keep_type` => `true`
+
+- Random file name letters
+
+ `random_name_alphabet` => `'qwertyuiopasdfghjklzxcvbnm'`
+
+- Display debugging information
+
+ `debug` => `($_SERVER['SERVER_NAME'] === 'localhost')`
## Usage options
-- Through interface:
- - Click on upload message
- - HTML5 Drag'and'Drop (via dropzone.js)
- - No Javascript HTML Form fallback
+- Through an interface:
+ - Choose files via dialogue
+ - Drop files, via HTML5 drag'and'drop (using [dropzone.js](http://www.dropzonejs.com/))
+ - Basic HTML Form (if no JavaScript is suported)
- Upload using any compatible tool (like cURL)
This example will upload a file and copy URL to clipboard:
-
+
```bash
- curl -F "file=@$(pwd)/file.jpg" http://yoir-host/sharing/ > xclip -sel clip
+ curl -F "file=@file.jpg" your-host/sharing/ | xclip -sel clip
```