forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: a2ms on March 07, 2007, 07:42:10 pm

Title: No file was uploaded
Post by: a2ms on March 07, 2007, 07:42:10 pm
Believe me I already search through this forum for an answer, but couldn't find any solution!!

I've got this error:

Code: [Select]
No file was uploaded !

If you have really selected a file to upload, check that the server allows file uploads...

File: /hermes/web06/b2966/pow.va2ms/htdocs/galeria/db_input.php - Line: 311

At first the error it showed was on line 355, and i fixed adding the SILLY_SAFE_MODE.

All permissions are set to 777 in '/albums' and all its subfolders

The relevant php.ini data is:

Code: [Select]
file_uploads On
upload_max_filesize 5M
upload_tmp_dir no value
post_max_size 8M
memory_limit 18M

.
.
.

Environment

TMPDIR /home/users/web/b2966/pow.va2ms/htdocs/galeria/cgi-bin/tmp

However the URL/URI uploads work OK

Please check my site:

user: testuser
password: test
url: http://galeria.consejo-estudiantil.com/

I really hope someone can help me soon
Title: Re: No file was uploaded
Post by: Nibbler on March 07, 2007, 07:45:13 pm
TMPDIR    /home/users/web/b2966/pow.va2ms/htdocs/galeria/cgi-bin/tmp

Does that directory exist and is it writable?
Title: Re: No file was uploaded
Post by: a2ms on March 07, 2007, 07:51:25 pm
It does exists and has mode 755
Title: Re: No file was uploaded
Post by: Stramm on March 07, 2007, 07:57:54 pm
has php access to the systems tmp dir?? Check open_basedir, maybe it's restricting and php can't save data in the systems tmp dir. Then you need to specify a dir with upload_tmp_dir or add the systems tmp dir to open_basedir
Title: Re: No file was uploaded
Post by: a2ms on March 07, 2007, 10:53:45 pm
in the php.ini file open_basedir has no value, how can i know if it has acces to the system tmp dir?
i'll try ssigning the upload_tmp_dir to /home/users/web/b2966/pow.va2ms/htdocs/galeria/cgi-bin/tmp
Title: Re: No file was uploaded
Post by: a2ms on March 07, 2007, 10:55:31 pm
btw what should go on the open_basedir?
Title: Re: No file was uploaded
Post by: Nibbler on March 07, 2007, 11:08:27 pm
Nothing.
Title: Re: No file was uploaded
Post by: a2ms on March 08, 2007, 01:12:54 am
My last idea didn't worked out well, however i discover another tmp directory used by my webhost provider:

upload_tmp_dir = upload_tmp_dir to /home/users/web/b2966/pow.va2ms/htdocs/cgi-bin/tmp

Now it works!!!!

anyway thank ypou very much.. and you can classify this as solved