in reply to Unlink doesn't work on first file

It won't unlink the [first] filename even though the path and the filename are correct. Thoughts?

You don't mention what Operating System you're uploading files to, and the OS matters. On Win32, you won't be able to delete a file if some process has it open. Is it possible that you've opened the first file for some reason, and have forgotten to close it before trying to unlink it?