]> git.mxchange.org Git - simple-upload.git/blob - README.md
Renamed license file (removed `.md`)
[simple-upload.git] / README.md
1 # Simple PHP upload
2
3 Simple single-file PHP file upload (file share hosting) script.
4
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!
6
7 ## Installation
8
9 Just drop a PHP file in any directory. It will work straight away
10
11 ## Configuration
12
13 There are few options that you can change by editing the file itself:
14
15 - `uploaddir => '.'`
16         Directory to store the uploaded files. Defaults to rurrect script directory
17
18 - `listfiles => true`
19         Option that will list all files in uploads directory. Enabled by default
20
21 - `debug => false`
22         To display debugging information
23
24 ## Usage options
25
26 - Through interface:
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)
31
32         This example will upload a file and copy URL to clipboard:
33
34         ```bash
35         curl -F "file=@file.jpg" your-host/sharing/ | xclip -sel clip
36         ```