Getting Uber-Uploader to work on Media Temple’s (gs)
by Michael
I recently required a stable HTTP uploader on my site to get some work done. Looking at many different solutions all over the web, I came across Uber-Uploader. It’s amazingly fast, responsive, and makes great use of AJAX for its extremely accurate progress bar. My test with a 300MB video file completed without any trouble.
The problem I faced was getting the settings to work correctly under Media Temple’s grid hosting service, the (gs). After hours of messing around with the configuration files, I finally got it to work! Please note that the following instructions are meant solely for setup on the (gs), and will most likely not work in its current state on other hosting providers services.
Uber-Uploader comes with three files that contain all the customization possible: ubr_default_config.php, ubr_ini.php, and ubr_upload.pl.
My setup had the perl file in the cgi-bin of my domain, and the php files under the “upload” directory in the “html” folder; the following instructions will only work under that setup…
Here are all of the things you need to edit in UBR_DEFAULT_CONFIG.PHP:
$_CONFIG['upload_dir']:
/home/GRID_ACCOUNT_NUMBER/domains/DOMAIN_GOES_HERE/html/upload/files/
$_CONFIG['redirect_url']:
http://’ . $_SERVER['HTTP_HOST'] . ‘/upload/ubr_finished.php
Here are all of the things you need to edit in UBR_INI.PHP:
$TEMP_DIR:
/home/GRID_ACCOUNT_NUMBER/domains/DOMAIN_GOES_HERE/html/upload/temp/
$PATH_TO_UPLOAD_SCRIPT:
/cgi-bin/ubr_upload.pl
Finally, here are all of the things you need to edit in UBR_UPLOAD.PL:
my $TEMP_DIR:
/home/GRID_ACCOUNT_NUMBER/domains/DOMAIN_GOES_HERE/html/upload/temp/
Feel free to post with any comments or questions regarding the setup…
Enjoy!
Comments
THAT’S AWESOME! Thanks for posting this information, you just saved me an hour.
(I hadn’t thought of putting the GS account number in the file path for some reason.)
Hey Matthew,
I’m glad it worked for you! Made it worth posting… =)
~Michael
Wow
This was a lifesaver – saved so many hours !!
Hello,
Thanks for this. it made life a lot easier. Just to point out a couple of issues i had.
1. the grid account number only worked when i removed the S from the start of it.
2. on the config reditect_url code i had to change the commas that were ’ to ones that were ‘
Hey Kenny,
Thanks for the hint! I’ll be looking into this shortly and updating the article as necessary.
Regards,
–Michael
Thanks for this post, the cgi-bin directory was tripping me up and I was getting the “Flength File Error” over and over! Cheers.