How to use mintUpload on your own FTP server.

🔖 Technology 
I installed Linux Mint yesterday because my Ubuntu installtion was starting to get a little messed up from all the costant configuration, reconfiguration, and installation of new (and often not stable) packages. Nothing like a fresh start right? Mint Linux has some cool custom applications, one of them being mintUpload. It allows you to upload a file in 2 clicks to a FTP server and gives you the URL. Unfortuneatly, Mint doesnt make it easy to confugre the tool to use any service other than its own crappy one. But it is possible. If you have your own server you want to use with mintUpload, just follow these steps. 1) Create a writeable directory on your webserver where you want the uplaods to go, ex. /httpdocs/uploads 2) Create a file in that directory named "space.html" and put a single line in it: 100000000/100000000 This will tell mintUpload how much space you have, but since its your own server and we dont really care to keep track how much space is left, it will be static. 3) Go to /usr/lib/linuxmint/mintUpload/services and create a file with the name of your server. 4) Put this in your file: name=<YourName> host=<YourHost> user=<FTP Username> pass=<FTP Password> path=<Path to upload folder, ex httpdocs/uploads/> space=<Path to space.html> url=<URL to upload directory>/<TIMESTAMP/<FILE> maxsize=1000000000 persistance=365 Note that <TIMESTAMP> and <FILE> are variables used by mintUpload and you should leave them as they are. Save the file, and you should now have a working service in mintUpload! This works great, but there was one thing that still annoyed me. mintUpload places the files in subdirectories named from timestamps of the main upload folder. This is great if you are hosting a service that thousands of people will be using and the files will be deleted every so often. But I'm the only one using this service so it would be better if the files went directly into the uploads folder without and subdirectories so they can be easily viewed. To fix that: 1) change url=<path to upload directory>/<TIMESTAMP/<FILE> to url=<path to upload directory>/<FILE> 2) Open /usr/lib/linuxmint/mintUpload/mintUpload.py and comment out lines 155, 156, 157 and 162. To comment out a line, simply put a # in front of it. ex: #ftp.cwd(directory) Save the file, now all uploads will go directly into the upload directory without any subdirectories. Cheers!