File upload and refresh

I have the same problem…--------------------- From Jonathan ---------------------------

Hopefully someone can help us with this rather annoying problem…

We have a form with a standard file upload control on it. If a user browses to a file and attaches it all is OK. However, if before saving they then go to another field (dialog box) that does a ‘refresh fields on keyword change’ the value selected in the file upload gets cleared with the refresh.

All other field types are unaffected.

Any help appreciated …

Cheers

JP


File upload generate a HTML TAG, I can not modify that with JS… I do not know another way to do it.

Subject: file upload and refresh

My guess is you will not be able to get around this. There are browser security features that do not allow script to access the actual path that the file came from, so when the screen is refreshed, the path showing in the field will not be sent to the server. The document has to be attached first. You should consider putting the file upload at the bottom of the form and warning the user about the issue, or not letting the file upload be seen until the document is saved at least once.

Subject: thank you very much