File Vomitorium

File Vomitorium is a simple PHP file upload script designed to be a single-user replacement for services like RapidShare, MegaUpload, etc. It's free for anyone to use or change. Password authentication is achieved by some .htaccess files included to protect the upload script while leaving files public (see README for details).

Download

File Vomitorium 1.1

Old versions:
File Vomitorium 1.0

Changelog

1.1 - Added delete ability to file list.
1.0 - Initial release (adapted from Image Vomitorium)

Documentation

The included readme file:
File Vomitorium 1.1 by Tyler Bletsch (tkbletsc (at) eml.cc)
  http://dsss.be/file-vomitorium/
  
File Vomitorium is a dead-simple file hosting script.  It is designed to 
easily let you create your own replacement for rapidshare, megaupload, etc. 


FEATURES
--------
 - Allows you to upload files
 - Responds with URL, HTML code, and forum code to link to the file
 - Gives you a simple listing to review uploaded files
 - Templates for htaccess files are included so you can require authentication
   in order to upload


ANTIFEATURES (things it doesn't do)
------------
 - No auto-deletion
 - No accounts (beyond what basic HTTP authentication can do)
 - No ads


INSTALLATION
------------
Starting from the document root:

1. Make a directory for it and go there.       $ mkdir filevomit
                                               $ cd filevomit
2. Extract the files there.                    $ unzip /source/file-vomitorium-.zip
3. Give write permission to that directory     $ chmod 777 dat
    (you only need to do this if your web server runs as a different user)
4. Configuration (see next section)
5. Optional: enable login security (see SECURITY section)

If you're on Windows, you can skip steps 4 and 6.  


CONFIGURATION
-------------
To edit the settings, just open up config.php and edit the variables.

The defaults for these are okay for most environments.


SECURITY
--------
If you want to make your file upload facility private while still allowing
public access to your files, do the following (assuming you use apache):

1. Configure an htpasswd file OR some other means of HTTP authentication
    (man htpasswd or check with your ISP for details)
2. Edit htaccess so it refers to your htpasswd file, which should be in a
   private place (i.e. not web-accessible).
3. Rename htpasswd to .htpasswd
4. Rename dat/htpasswd to dat/.htpasswd

If you do NOT want to require a login for your File Vomitorium, just delete
the htaccess files.


USAGE
-----
To upload:
 1. Pick a file.
 2. Hit "Vomit" to upload it.
 3. Link to it using the URL or the linking code provided.
To get uploaded files:
 1. Click 'File List'.
 2. You are now looking at a sortable list of uploaded files.


LEGALITIES
----------
This is free software; use at your own risk.  Author accepts no responsibility 
for the quality of this product.  Feel free to modify or distribute this code
without restriction.