I’ve create an internal site for my job and am using XAMPP to manage the server (since we are small and do not have the finances for much better). I’ve created an upload script to allow others to upload documents pertaining to customers and when we upload the documents, half the time they upload flawlessly while the rest of the time it fails with a return code of 0. I’ve done some research on this just to confirm my suspicions and found that code 0 means that the file was uploaded without error, which doesn’t make sense since it gave me an error and prevented the upload. Attached is the message returned from XAMPP. Whatcha guys think?
Well this is awkward… When I re-uploaded the file, the error returned said the upload directory didn’t exist and when I went to make sure, I saw that it did exist but there was a slight difference between the two names… I need to incorporate that in to my error detection script, check if the directory exists FIRST then upload and spit back an error if it doesn’t…
Anywho… Thank you everyone for helping me out, it’s much appreciated! and thanks SpacePhoenix for reminding me of that option
Well, thing is… The uploads all worked for customers that do not have any special characters in their name as my testing customer does, it has an apostrophe in it and when the system went to upload, the upload script doesn’t transcribe the apostrophe to html code: