There was populist belief spread across the Internet on many forums that a destination can only contain a file name, but I find that to be untrue through experimentation.
I changed the destination carrying just file name, to the path + filename combination, and I find that it works.
Without Path = $destination = $rand.$filename;
With Path = $destination = “2/”.$rand.$filename;
Similarly, the source may contain a path depending upon the location of the script file; If the script file and “the file to be uploaded” are not in the same location then the path may involve.
Well the answer’s the same. I don’t really know what startpos is for but it’s nothing to do with the path. My guess is it’s to do with uploading a file in chunks but I can’t find much documentation on it.
Note that the spec in the PHP manual shows that startpos should be an integer, which gives you a clue as to what it’s for: