|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Restoring Upload File Path on form error?I have a form with a number of input fields which require validation.
I'm in the process of adding a file field so that users can also upload some supporting documentation. If the form doesn't validate due to missing or incorrect data I want to redisplay the form with the original data. If I specify a document and form errors exist, I can't restore the originally selected document path string back into the input file field. There are a couple of issues here: (1) get upload remote filename may not return the full path to the document on the browser machine. (2) Using a value attribute in a file input doesn't appear to have any affect? If I view the source I can see that inserted value, but it doesn't appear in the field. This may be due to the fact that in (1) I'm not getting the full file path. So, assuming (2) should work, is there anyway to get the full path in (1)? Active4D 4.0.2 Running under 4D Client 2003.7 NTK-based Web Server (Under Testing. I see this w/ ITK also) 4D Server 2003.7 running on Windows 2003 Server Thanks, Brad Perkins _______________________________________________ Active4D-dev mailing list Active4D-dev@... http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/ |
|
|
Re: Restoring Upload File Path on form error?I Googled this and it appears that what I'm seeing is a security precaution.
If anyone knows of a universal workaround I'd love to hear it, but it sounds like this behavior will have to remain. -- Brad Brad Perkins wrote: > I have a form with a number of input fields which require validation. > I'm in the process of adding a file field so that users can also > upload some supporting documentation. > > If the form doesn't validate due to missing or incorrect data I want > to redisplay the form with the original data. If I specify a document > and form errors exist, I can't restore the originally selected > document path string back into the input file field. > > There are a couple of issues here: > (1) get upload remote filename may not return the full path to the > document on the browser machine. > (2) Using a value attribute in a file input doesn't appear to have any > affect? If I view the source I can see that inserted value, but it > doesn't appear in the field. This may be due to the fact that in (1) > I'm not getting the full file path. > > So, assuming (2) should work, is there anyway to get the full path in > (1)? > > Active4D 4.0.2 > Running under 4D Client 2003.7 > NTK-based Web Server (Under Testing. I see this w/ ITK also) > 4D Server 2003.7 running on Windows 2003 Server > > Thanks, > > Brad Perkins > > > _______________________________________________ > Active4D-dev mailing list > Active4D-dev@... > http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev > Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/ > > _______________________________________________ Active4D-dev mailing list Active4D-dev@... http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/ |
|
|
Re: Restoring Upload File Path on form error?> (1) get upload remote filename may not return the full path to the
> document on the browser machine. The filename sent by the browser is browser-specific. You can't rely on getting a full path. RFC 1867 (multipart/form-data) suggests sending only the filename. Regards, Aparajita www.aparajitaworld.com "If you dare to fail, you are bound to succeed." - Sri Chinmoy | www.srichinmoy.org _______________________________________________ Active4D-dev mailing list Active4D-dev@... http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/ |
|
|
Please Contact MeSorry all to send this to the list but I think my email is not getting
through to Aparajita. Aparajita, could you contact me at this email address: mayall@... Thanks, Will Mayall _______________________________________________ Active4D-dev mailing list Active4D-dev@... http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/ |
| Free Forum Powered by Nabble | Forum Help |