Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Upload issues


IronHide8

Recommended Posts

Hi, When I'm trying to upload a picture of a product, this is what happens:

 

 

 

Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/www/data/www.valikoi.com/kauppa/catalog/images/a2_03.jpg) is not within the allowed path(s): (/www/04/valikoi.com:/www/data/valikoi.com:/tmp:/www/scripts) in /www/04/valikoi.com/kauppa/catalog/admin/includes/classes/upload.php on line 91

 

Warning: move_uploaded_file(/www/data/www.valikoi.com/kauppa/catalog/images/a2_03.jpg) [function.move-uploaded-file]: failed to open stream: Operation not permitted in /www/04/valikoi.com/kauppa/catalog/admin/includes/classes/upload.php on line 91

 

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpNmdAb6' to '/www/data/www.valikoi.com/kauppa/catalog/images/a2_03.jpg' in /www/04/valikoi.com/kauppa/catalog/admin/includes/classes/upload.php on line 91

 

 

Lines 90-92:

 

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

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

 

 

Where's the problem? I've set the permissions ok in CHMOD, so that ain't the problem.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...