mdemetri2 Posted November 15, 2012 Share Posted November 15, 2012 (edited) Hi Here is hoping someone can help. I have some code that I found and use to upload files to my server, details below (important stuff removed). Currently it works fine, apart from what I suspect is due to file size (I am going to have to find out what the threshold is as I can't see that it is defined anywhere) when uploading a large file fails, it still rights to the table that it has done something but obviously no file, so when you view the apparent attachments available for a location (propertyref) it also lists some where a physically uploaded filed does not exist. Can I add something to the code below to stop it writing to the table if it fails uploading the file? Or set a max file size and have it check at the point of submitting then stop it writing to the table?? MUCH APPRECIATED FOR ANY HELP, THANK YOU! Had to attach portion of code as it kept cutting part way through and not showing correctly in post. Edited November 15, 2012 by mdemetri2 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.