Answer the question
In order to leave comments, you need to log in
Why doesn't the file move?
The condition is not met. What to write instead of "img/"? Tried already:
"folder/img/" (the script is in "site.ru/folder/admin/')
"/folder/img/"
"/folder/img"
"folder/img/"
"img/"
"/img ", etc. - nothing comes out.
I tried like this:
$uploadfile = $_SERVER["DOCUMENT_ROOT"].'/acobar18/img/'.$random.'-'.basename($_FILES['image']['name']);
Answer the question
In order to leave comments, you need to log in
Most likely not the correct path is registered. Try to extract move_uploaded_file from the condition and see what the error is.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question