Delete a file before uploading files
Posted on 2004-07-30
My ISP has provided me with some code to upload files. Which works the first time. The second time I try to upload files it get the following error..
ABCUpload4.XField.4 error '80040050'
A Windows error - The file exists. - (0x00000050) occurred.
/partnersite/regions/EMEA/upload_success.asp, line 24
I talked to my ISP and they say the permissions are set properly. The only thing I've been able to deduce is that the myupload.dat file doesn't like to be overwritten. How do I delete the file automatically before uploading my other files? Here is the code of the processing asp.
Set theForm = Server.CreateObject("ABCUpload4.XForm")