UmaWorld's avatar

ISSUE ON The Upload File PHP Script

string(50) "http://localhost/coffee-blend/images/dessert-5.jpg" Warning: move_uploaded_file(http://localhost/coffee-blend/images/dessert-5.jpg): Failed to open stream: HTTP wrapper does not support writeable connections in C:\xampp\htdocs\coffee-blend\admin-panel\products\add-product.php on line 24

Warning: move_uploaded_file(): Unable to move "C:\xampp\tmp\php89B8.tmp" to "http://localhost/coffee-blend/images/dessert-5.jpg" in C:\xampp\htdocs\coffee-blend\admin-panel\products\add-product.php on line 24

not able to understand what is exactly happening

0 likes
3 replies
Tray2's avatar
Tray2
Best Answer
Level 73

You can't do that over http, you need to move the file on the file system.

You are trying to write it to http://localhost*** you need to write it to c:\wamp\www****

1 like
vincent15000's avatar

The target file can't be a URL.

You need to define an absolute or relative path on the disk.

1 like

Please or to participate in this conversation.