Object: | SoftArtisans.SAFile | ||||||
Syntax: | IsEmpty | ||||||
Type: | Boolean | ||||||
Read/Write: | Read Only | ||||||
Description: |
This property indicates whether the user specified a valid file to upload. When a user fills out a form containing a file (<input type="file" />), there are three possibilities:
In the second and third cases, the browser does not report an error. The browser simply proceeds with the upload but leaves the file contents of the upload empty. Your recourse is to let the user perform the upload and test the IsEmpty property. If the property is True, the user did not transmit a valid file. If the property is False, the user did transmit a valid file. See also the IsEmpty property for the SAFileUp object. |
||||||
Examples: | |||||||
|