Skip to content

Simple and secure file hosting web service in PHP

Notifications You must be signed in to change notification settings

MDCYT/files.mdcdev.me

 
 

Repository files navigation

files.mdcdev.me logo

Secure, fast and temporary file hosting web service wrote in PHP.

To install

Copy paste the files to your webserver. Make sure the permission are correct by browsing check.php. If not, edit permission so the webserver owns the files.

Delete check.php once checked

Make sure to edit your php.ini conf file to increase the file size limit. Check https://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize

For security purposes, don't forget to:

  • Block the access to the /tmp directory from the website

For example, using an .htaccess if you are working with Apache. If you use an .htaccess in the /tmp directory, make sure that it won't be deleted when the /tmp directory is emptied.

Delete git relative files/folder is you cloned the repository.

To empty periodically the /tmp folder

You can use a cron job to /delete.php every day for automatic deletion of deletable files.

Languages

  • PHP 64.1%
  • JavaScript 35.9%