Hello,
I have this magical script which uses rename. A visitor to the site
uploads a file and I want to rename it to a timestamp. Oddly enough,
the rename() function actually works, it renames the file AND then
generates a level 2 warning:
Error code: 2
Error message: rename() failed (No
I have this magical script which uses rename. A visitor to the site
uploads a file and I want to rename it to a timestamp. Oddly enough,
the rename() function actually works, it renames the file AND then
generates a level 2 warning:
Error code: 2
Error message: rename() failed (No such
Lowell Allen wrote:
Try using $HTTP_POST_FILES['uploadedFile']['name'] instead. I wasted a bunch
of time yesterday with an upload script that did not recognize files when
using $_FILES, but worked fine with $HTTP_POST_FILES -- PHP 4.3.4 on
Linux.
Thank you for the suggestion. Unfortunately, it
Lowell Allen wrote:
Try using $HTTP_POST_FILES['uploadedFile']['name'] instead. I wasted a bunch
of time yesterday with an upload script that did not recognize files when
using $_FILES, but worked fine with $HTTP_POST_FILES -- PHP 4.3.4 on
Linux.
Thank you for the suggestion.
Lowell Allen wrote
So, I think you need to pass rename parameters that are file locations.
HTH
--
Lowell Allen
Thank you!!!
I was not in tune to what was happening. You are correct. You must
pass file locations and not just file namesonce I passed the
locations, the warning went
5 matches
Mail list logo