Hi there
I am having a problem, I have read all the forum and documentation and I can not find the answer...
I use a form with ASP upload that can upload 1 file. The upload is set to start manually because I'd like that the inserted picture is uploaded when the form is triggered.
I tried using doStart function that uploads the file and putting the function trigger to the SUBMIT button of the form. The:
uploadobj.startupload() is working but it doesn't finish uploading because the form is then submiited in a second and upload fails (uploads only partly).
How can I stop the form from submitting and let the file upload finish first (and start submitting when I press submit)?
Or is the only way to manually trigger file upload with special button and submit the rest of the form with submit? I find that non practical. On top of that if one uses custom buttom to upload file he can send 100 files but I want to allow only ONE per form. Automatic upload also doesn't work for the same reason and I still have to resize pictures after upload. So the only way I see is using the "upload when submit" option but then file is not uploaded completely.
Please help...
PS - To make the question more simple: Is there a way to use your module in the "normal web way", that means instead of a filefield in a form? I have a form with a filefield and I'd like to exchange file filefield with your code so that file would be uploaded when the rest of the form is submitted. But the file could also be empty (so I don't select a file at all) and the form would be submitted. I hope that is possible ;-)