InterviewSolution
Saved Bookmarks
| 1. |
How Can I Detect If An Optional File Has Been Uploaded? |
|
Answer» The receive() METHOD will return true for file elements that are not required. The reason is that you said “the file can be omitted, and that’s ok for me”. The receive() method will return false only in the event of a failure. Still there are several ways to detect if a file has been uploaded or not:
The receive() method will return true for file elements that are not required. The reason is that you said “the file can be omitted, and that’s ok for me”. The receive() method will return false only in the event of a failure. Still there are several ways to detect if a file has been uploaded or not: |
|