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!