NT 7.11
I am uploading files from a form - multiple-file select using the advanced HTML5 option. The user may select only one file to upload or as many as 10-15 or more at one time. These files are mostly .jpg and tif but could be any file type.
With each file that uploads I need to process that file in the "3 SaveFile Routine" embed. The processing takes a bit of time - each file is renamed, run through a couple of ImageEx classes, moved to another folder, and then a parent .tps record is created to attach the file to a specific invoice record.
All files are uploading correctly to the web/uploads folder but my processing is failing - I think because of timing issues. My processing appears to be out of sync with the arrival of the files in the upload folder and some errors are occurring - such as rename or copy failures.
If I upload all the selected files one at a time by clicking the individual start button on the file list everything works fine - but if I click Start for all files at once then the problems arise.
Am I using the wrong embed to do this? I have put a one second delay timer in the SaveFile embed but that does not prevent the problem.
If I do not use a one second delay timer in the SaveFile routine I get exceptions related to file access that crash the web server app.
Need some help - thanks.
Chuck