PDA

View Full Version : The best file hosting. Tmp_dir ERROR


bobbyd
12-16-2007, 04:48 PM
Hi,

I'm trying to setup the script for a client. However I can't fix this error. The Flash uplload work fine, but I get this error in form upload.

Upload error:
can't open numfile /temp/7ee2d98c9499dfccd4e41a2d1ddbed40_flength: No such file or directory (Please edit [$tmp_dir='/temp'] in header.cgi)

Please,try again.

Here is the header.cgi

#temporary directory
$tmp_dir="/temp";

# set custom temporary for CGI.pm
$CGITempFile::TMPDIRECTORY = $TempFile::TMPDIRECTORY = $tmp_dir;

yabsoft
12-17-2007, 03:04 PM
You should make sure the $tmp_dir to point to the correct path. I guess your /cgi-bin is out side /www or /htdocs directory. If this is your case, you can change "/temp" to "../www/temp" or "../htdocs/temp".

stdio
05-21-2008, 09:54 AM
uuvbbz,

Please stop posting useless posts. This is your first and final warning.

lovesazu
12-01-2008, 09:09 PM
yabsoft

i m using Netfirms
it has a double folder like this

CGI-BIN
WWW/DOMAIN/TEMP

i tried edit Header.cgi by

../www/domain/temp
also tried
./www/domain/temp
as well
/www/domain/temp

but still geting same error

yabsoft
12-01-2008, 10:58 PM
yabsoft

i m using Netfirms
it has a double folder like this

CGI-BIN
WWW/DOMAIN/TEMP

i tried edit Header.cgi by

../www/domain/temp
also tried
./www/domain/temp
as well
/www/domain/temp

but still geting same error
Do you have other cgi-bin in www/domain?

lovesazu
12-08-2008, 07:29 PM
Do you have other cgi-bin in www/domain?

no bro i do not have another cgi-bin in www folder
ok here i show u how it is

Hosting Root
|--Cgi-Bin
|--www
|--Mydomain.com

this is how it is on netfirms bro

lovesazu
12-08-2008, 07:31 PM
oh i cant edit i send one more post

-Root
--CGI-BIN
--WWW--MYDOMAIN--here m installing

yabsoft
12-08-2008, 10:15 PM
Send me ftp access to make changes for you.