PDA

View Full Version : Uploading Attachments or Avatar problem


VeRT3X
07-12-2002, 07:39 PM
I am doing coding and design for a client and when trying to upload an attachment (jpg image) or an avatar (gif image) it comes up with this error:

"The uploaded file is not a valid GIF or JPG file. Please ensure that it is and try again."

when clearly its a JPG, under the size restriction and doesnt work for any image files.

When uploading a ZIP file or a TXT file like i tried it gives an error at the top saying that there is something wrong with functions.php with this message:

Warning: open_basedir restriction in effect. File is in wrong directory in /usr/local/psa/home/vhosts/clientforum.url.here/httpdocs/admin/functions.php on line 1719

Warning: fopen("/tmp/php63LiUG","rb") - Operation not permitted in /usr/local/psa/home/vhosts/clientforum.url.here/httpdocs/admin/functions.php on line 1719

Warning: Supplied argument is not a valid File-Handle resource in /usr/local/psa/home/vhosts/clientforum.url.here/httpdocs/admin/functions.php on line 1720

Warning: Supplied argument is not a valid File-Handle resource in /usr/local/psa/home/vhosts/clientforum.url.here/httpdocs/admin/functions.php on line 1721

I edited the forum url since it is private until release, he is using Plesk control panel (if that matters). Please help, Thank you.

Admin
07-13-2002, 07:03 AM
You need to enable safe mode uploading in the vBulleitn options.

InnerSelf
02-20-2003, 07:04 AM
i had exactly the same problem with the upload.

now i did that safe mode on, and i made a dir on the server with chmod 777. but still i get errors (other ones as before)


Warning: open_basedir restriction in effect. File is in wrong directory in /usr/local/psa/home/vhosts/dragon.****.net/httpdocs/board/admin/functions.php on line 1737

Warning: stat failed for /images/attach/temp/vbaa788fe4b (errno=2 - No such file or directory) in /usr/local/psa/home/vhosts/dragon.****.net/httpdocs/board/admin/functions.php on line 1741


the 1737 line is this: move_uploaded_file($attachment, "$path");
and
the 1741 line is this: $filesize=filesize($attachment);


any help is welcome!!!