use mintUpload with your own ftp server
- July 21st, 2008
- Posted in Featured . Tutorials
- Write comment or click if you like the post:
I got linux mint the other day and was playing around with the mintUpload feature. I really didn’t want to use their limited service, and have my own ftp so why not use it?
It’s very easy, here are the steps:
1. Create a file, name it whatever you want. Put some numbers such as 100000000/100000000 in it and save as whatever. This is so mintUpload “knows” how much space you have available. You can write a simple php to give actual numbers, but I don’t care since its just me using it.
2. Upload this file to your site, make sure its http:// accessible.
3. sudo nano /usr/lib/linuxmint/mintUpload/services/<servername>
4. Put this in nano, edit as needed and save:
name=<yourservername>
host=<ftp.yourservername.org>
user=<yourftpusername>
pass=<yourftppassword>
space=http://<url to space file in step 1>
url=http://<url to dir where files are uploaded>/<TIMESTAMP>/<FILE>
maxsize=1000000000
persistence=365
Notes:
persistence= random number
url= Leave the <TIMESTAMP>/<FILE> part, they are variables used by the script.
Files will be uploaded to a folder with a timestamp. IE: http://yoursite.org/uploads/2008072111111/yourfile.jpg
maxsize= maximum size you want to limit yourself to…
Works ok, but the only problem is that files go to the root instead of the folder /uploads/ I specify. Strage behavior I cant seem to figure out.
makasih atas bantuannya..