Skip to content

Create your own fileshare service on your local webserver. Files are deleted after 12 hours (adjustable), and can me made private.

License

Notifications You must be signed in to change notification settings

yelodevopsi/drop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DropZone + DirectoryList

Create your own (temporary) fileshare service on your local webserver. Files are deleted after 72 hours (adjustable), or/and can be set to random paths for private uplaods.

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 12 hours (adjust to your need), working like a temporary file sharing service, keeping your upload folder clean after usage.

Prerequisites

  • PHP5
  • Cron

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 (private as above)
  • Cleanup private shares with cronjob

Licence:

MIT

About

Create your own fileshare service on your local webserver. Files are deleted after 12 hours (adjustable), and can me made private.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published