a sexy uploader
Find a file
2017-02-13 18:45:56 +01:00
config.php via upload 2017-02-02 16:34:27 +01:00
ee.png via upload 2017-02-02 16:34:27 +01:00
favicon.ico via upload 2017-02-02 16:34:27 +01:00
index.php uplodx.ml -> uplodx.eu 2017-02-13 18:45:56 +01:00
LICENSE Initial commit 2017-02-02 16:33:21 +01:00
README.md Zaktualizuj 'README.md' 2017-02-02 16:39:47 +01:00

uplodx

a sexy uploader

⚠️ 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 code. See server configuration for examples.

TODO

  • Delete files
  • Private files
  • Sort by age
  • Auto-remove old files
  • AJAX Uploader

Installation

Just drop a PHP file in any directory.

Usage options

  • Through an interface:

    • Choose files via dialogue
    • Drop files, via HTML5 drag'and'drop (using dropzone.js)
    • 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:

    curl -F "file[]=@file.jpg" uplodx.ml | xclip -sel clip
    

Server configuration

Do not allow uploaded code execution!

NGINX configuration example

Edit the NGINX configuration file (/etc/nginx/sites-enabled/uplodx):

server {
	listen 80 default_server;
	listen [::]:80 default_server ipv6only=on;

	root /usr/share/nginx;
	index index.php;

	server_name localhost;

	location / {
		try_files $uri $uri/ =404;
	}

	error_page 404 /index.php;

	location /index.php {
		fastcgi_split_path_info ^(.+\.php)(/.+)$;
		fastcgi_pass unix:/var/run/php5-fpm.sock;
		fastcgi_index index.php;
		include fastcgi_params;
	}
}