Skip to content

janvonde/pregos-files

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
inc
 
 
 
 
 
 
 
 
 
 
 
 

pregos files

About

This project let you share files for a limited time. I used to use Filez but it stopped to work for me so I decided to replace it with an own PHP script.

Features

  • Upload files that expire after a time period
  • Random download name that can't be guessed easily
  • Optional a custom download name may be choosen
  • Optional a download can be secured with a password
  • Email notification when a file is downloaded
  • Email notification before a file expired
  • User authentication for file upload
  • Default and Admin user roles
  • Admin users may add new users and see a list of all files available

Installation

You need an Apache webserver with mod_rewrite, php, php5-sqlite extensions enabled. Clone the repository and put all files in the root folder of a vhost. Make sure, that the .htaccess file is recognized with AllowOverride All. Afterwards adjust the three settings in inc/config.inc.php. Start your webbrowser and open the index.php file. A database file is created automatically, username and password will be shown.

For deletion of expired files setup a daily cronjob that calls index.php?fileMaintenance=true, for instance like this:

#
# Delete expired and send email notification about soon expiring files
#

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root

23 4   * * *  www-data    curl -o /dev/null --silent http://files.example.com/index.php?fileMaintenance=true

Changelog

  • 2016-01-31: initial public release

Credits

License

Apache Licence 2.0

About

Share files for a limited time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages