File upload using CeB¶
Introduction¶
With CeB, you can upload files to as server simply by dropping files on CeB window. Once the upload is done, it will publish the final URL.
CeB setup¶
All you have to do is to setup CeB
In Configuration => General Settings => Links, edit both Upload URL and Download URL.
Upload URL is the link to upload a file, it can be a FTP url or a link to any file/directory on your server, once it's uploaded it should be available at Download URL.
Examples¶
- FTP
Upload: ftp://login:password@domain.com/folder
Download: http://domain.com/folder
- HTTP PUT (using Apache mod_actions)
Upload: http://domain.com/folder
Download: http://domain.com/folder
- HTTP PUT (using PHP script)
Upload: http://domain.com/upload.php?filename=
Download: http://domain.com/folder
Server setup¶
Apache PHP script¶
- edit the script http://code.google.com/p/cebmtpchat/source/browse/trunk/misc/upload.php to suits your needs
- upload it on your server
- setup Upload URL http://domain.com/upload.php or http://domain.com/upload.php?filename=
Apache PUT redirection¶
- enable mod_actions
- put this code in your VirtualHost :
<IfModule mod_actions.c>
Script PUT /upload.php
</IfModule>
* edit the script http://code.google.com/p/cebmtpchat/source/browse/trunk/misc/upload.php to suits your needs
* upload it on your server
* setup Upload URL http://domain.com/files/