]> git.mxchange.org Git - simple-upload.git/blobdiff - README.md
Added license to file itself
[simple-upload.git] / README.md
index d5bd4d2c4ea1bee8e432a5e2f0e44cc972ed828c..06717bef88bda2ac979871e9c640b9be5c30cec7 100644 (file)
--- a/README.md
+++ b/README.md
@@ -12,8 +12,25 @@ Just drop a PHP file in any directory. It will work straight away
 
 There are few options that you can change by editing the file itself:
 
-- `$settings['uploaddir'] = '.';`
+- `uploaddir => '.'`
        Directory to store the uploaded files. Defaults to rurrect script directory
 
-- `$settings['listfiles'] = true;`
+- `listfiles => true`
        Option that will list all files in uploads directory. Enabled by default
+
+- `debug => false`
+       To display debugging information
+
+## Usage options
+
+- Through interface:
+       - Choose files via dialigue
+       - 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=@file.jpg" your-host/sharing/ | xclip -sel clip
+       ```