This property yields the name of the file that is to be uploaded. You may want to check this for its suitability. Perhaps you need a text file and the user chose an executable. Careful checking at the client can save serious problems at the server when your data processing code receives the uploaded file. Sending an image file to a server back-end that was expecting a small text file containing short lines can cause a server crash.
See also: | Input.value, UniversalFileRead |
Prev | Home | Next |
FileUpload.type | Up | Filter |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |