Answer the question
In order to leave comments, you need to log in
Php handler not giving file address correctly?
the file upload form is Site/content/topic/add
When a file is sent to the server, the handler throws it into the site/uploads/ folder,
but at the same time it gives the wrong address for the file Site/content/topic/add/uploads/file
and you need Site/uploads /file
handler code at jsfiddle.net/dvzuntaL
Answer the question
In order to leave comments, you need to log in
Most likely the handler's entry point is in the /content/topic/add folder, and it puts the file in the uploads/ folder . Then those two paths add up to /content/topic/add/uploads/ .
You must specify the path relative to the root of the site, for example like this:$_SERVER['DOCUMENT_ROOT'].'/uploads/'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question