Another Uber-Uploader Question
Posted by: gthorne
Posted on: 2008-01-19 23:26:00
Hi, I'm trying to use Uber-Uploader to allow friends and family to upload pictures taken at my wedding. I have the php files installed in:
/home/gthorne/vickiandgregthorne.com/photos, and the perl file is in /home/gthorne/vickiandgregthorne.com/cgi-bin.
I want to upload to /home/gthorne/vickiandgregthorne.com/photos/uploads
and am using /home/gthorne/vickiandgregthorne.com/phototmp as the temp directory.
When I try to run it, I get the error:
Error: Failed to find flength file
So, I made the recommended changes to the .htaccess in the /home/gthorne/vickiandgregthorne.com/photos/ directory. It now looks like this:
<IfModule mod_security.c>
# Turn off mod_security filtering.
SecFilterEngine Off
# The below probably isn't needed,
# but better safe than sorry.
SecFilterScanPOST Off
</IfModule>
<IfModule mod_security.c>
SetEnvIfNoCase Content-Type
"^multipart/form-data;" "MODSEC_NOPOSTBUFFERING=Do not buffer file uploads"
</IfModule>
<IfModule mod_gzip.c>
mod_gzip_on No
</IfModule>
But I still get the same error. In the ubr_default_config.php, I have set the following option:
$_CONFIG['upload_dir'] = $_SERVER['DOCUMENT_ROOT'] . '/uploads/';
In the ubr_ini.php file, I set the following:
$TEMP_DIR = '/home/gthorne/vickiandgregthorne.com/phototmp/';
$PATH_TO_UPLOAD_SCRIPT = '/cgi-bin/ubr_upload.pl';
And in the ubr_upload.pl, I set:
my $TEMP_DIR = '/home/gthorne/vickiandgregthorne.com/phototmp';
Sorry if this is too much info, but I wanted to give too much rather than too little. Any help would be appreciated.
P.S. I saw in another post where someone said that you have to make your own PHP.ini in order to do uploads over 5MB, is that true?