Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Image Upload Problem


Recommended Posts

When I try to upload an image I receive an error in the script. Line 13 and line 22 of the categories.php file as it states. How can I alter the code to bypass an upload and put in the url or how can I fix this??

Link to comment
Share on other sites

Try changing this code:

copy($categories_image, $image_location);


to this code

move_uploaded_file($categories_image, $image_location);


And also this code:

copy($products_image, $image_location);


To this code:

move_uploaded_file($products_image, $image_location);


Make sure you back up, cos if it doesnt work you will have to put the originals back and start again.


And next time please post the ENTIRE error you get on screen.

This helps a lot more.





Link to comment
Share on other sites


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

  • Create New...