Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image uploading Errors


Guest

Recommended Posts

Posted

Hello, this is my first post and I'm new to php so I need any help I can get :'(

 

Trying to upload new images I keep geeting this error message,

 

What to do

 

"Warning: move_uploaded_file(c:\hosting\webhost4life\member\princess/catalog/images/logo.gif): failed to open stream: Permission denied in c:\hosting\webhost4life\member\princess\catalog\admin\includes\classes\upload.php on line 94

 

Warning: move_uploaded_file(): Unable to move 'C:\PHP\uploadtemp\php565E.tmp' to 'c:\hosting\webhost4life\member\princess/catalog/images/logo.gif' in c:\hosting\webhost4life\member\princess\catalog\admin\includes\classes\upload.php on line 94"

 

Peder

Posted
Hello, this is my first post and I'm new to php so I need any help I can get :'(

 

Trying to upload new images I keep geeting this error message,

 

What to do

 

"Warning: move_uploaded_file(c:\hosting\webhost4life\member\princess/catalog/images/logo.gif): failed to open stream: Permission denied in c:\hosting\webhost4life\member\princess\catalog\admin\includes\classes\upload.php on line 94

 

Warning: move_uploaded_file(): Unable to move 'C:\PHP\uploadtemp\php565E.tmp' to 'c:\hosting\webhost4life\member\princess/catalog/images/logo.gif' in c:\hosting\webhost4life\member\princess\catalog\admin\includes\classes\upload.php on line 94"

 

Peder

 

Looks like either the permissions in the temporary upload directory aren't set properly or the destination directory is limited in it's permissions. Check your php.ini what's your temporary directory and look for the the permissions as well as for the destination directory.

Posted

Are these directories on the webserver?

Posted

please supply us with configure.php located in includes folder. Please remove everything under - // define our database connection - for security purpose..

 

I think the problem is here:

 

Here you see that your page is hosted here:

 

c:\hosting\webhost4life\member\princess\catalog\

 

while is want's to load images from:

 

c:\hosting\webhost4life\member\princess/catalog/

 

do you see the difference? /catalog/ in not the same as \catalog\..

Posted

I found them,

 

94" if (move_uploaded_file($this->file['tmp_name'], $this->destination . $this->filename)) {

chmod($this->destination . $this->filename, $this->permissions);

 

So what need to be changed here to allow image upload?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...