do not try to check all the code, find the place where you loose your file -
from the begining:
die($name_of_uploaded_file); will give you the name of the file or you are not receiving it on the server at all?
if you have the file - try to use "move_uploaded_file"
include all the checkings, renamings, filters only after you will solve the main problem - getting your file in the place it should appear.
|