Welcome Guest ( Log In | Register )

Bump Topic Topic Closed RSS Feed

Outline · [ Standard ] · Linear+

 Saving image file in server, doing in localhost

views
     
TSsundaemanis
post Feb 14 2017, 04:39 PM, updated 8y ago

New Member
*
Junior Member
48 posts

Joined: Mar 2012



Hi,

I'm having problem with php to save file in the web folder. (I'm doing it in local server)

» Click to show Spoiler - click again to hide... «


this is the message that I get.

QUOTE
{
  "error":true,
  "message":"move_uploaded_file(uploads\/img-20170214-58a2c07ee551d.jpg): failed to open stream: No such file or directory"
}


Already googling for some solutions. Many says the include directory is the problem. help :<
Ryutaro
post Feb 14 2017, 05:07 PM

~ Just a noob programmer ~
****
Senior Member
541 posts

Joined: Mar 2011
i dont code in php...but i also suspect its the directory causing the problem.. did u saw the message part where uploads\/img.... part?a valid url shudnt have '\''/' together

meaning to say the directory contains error hence causing the file couldnt be open because it couldnt locate ur file in the first place

Topic ClosedOptions
 

Change to:
| Lo-Fi Version
0.0111sec    0.84    5 queries    GZIP Disabled
Time is now: 29th March 2024 - 09:08 PM