Create your own fileshare service on your local webserver. Files are deleted after 72 hours.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
css
js
upload
LICENSE
README.md
config.php
cronjob.php
index.php
upload.php

README.md

DropZone + DirectoryList

Create your own (temporary) fileshare service on your local webserver. Files are deleted after 72 hours.

Demo:

http://drop.mogieb.net

About

Combining DropZone.js, DirectoryLister and PHP, you can setup your own fileservice (ala files.fm) to upload and browse files and share link to friends or to your own use.

Files can deleted after 72 hours (adjust to your need), working like a temporary file sharing service, keeping your upload folder clean after usage.

Installation / Configuration

  1. Define upload folder in config.php. (Default is ./upload)
  2. Create a cronjob on your webserver through SSH/terminal:
crontab -e -u www-data

Add this line for check every 30 min:

*/30 * * * * /usr/bin/php /var/www/drop/cronjob.php

Path to php can be found by whereis php and must be in absolute path to work with crontab. To check at other time interval, see https://crontab.guru/ for an easy reference.

Planned features

  • Multiple fileupload with unique share-link
  • Better CSS-styling on dropzone
  • Make own config.php file
  • Publish demo-site
  • Scramble fileshare-path without using database
  • Option for hiding uploaded file in DirectoryList browser

Licence:

MIT