← v4 compatibility demos
Multiple Files Upload
The attachments control keeps an uploaded-file list across postbacks. Enumerate
Items on the server to copy or stream each file.
This page exercises the members restored in 5.3.2. UploadAttachments
was rebased onto the modern control in v5 and lost 65 v4 members, including the
FileValidating and UploadCompleted events wired up here -
which previously could not fire at all.
MaxFilesLimit is set to 5 above. Until 5.3.2 this property stored
to ViewState and was never read, so the limit was silently ignored and any number
of files was accepted.