It is possible build form pages that include file upload fields that are not required.
There is no need for any other components or special access to the server!
An Upload report is send to the redirect page.
Upload report - FileStatus value:
0 | No problem | Saved |
1 | File size exceed | Skipped |
2 | File extension not allowed | Skipped |
3 | File extension not allowed and File size exceed | Skipped |
Progress Bar
Delete Files
After the mail is send You can delete or don't delete the uploadedfiles
Conflict Handling
Should a file already exist on the server, you can specify how you would like to handle the new file. Choices include overwriting, giving the file a unique name and skipping the file.
If You select "Unique name" and a file exist my code add e progressive number to the file name.
ex: Existing file is MyFile.txt the new name will be MyFile
0.txt
Total file size
File upload size can be limited for each file or for the sum of all the uploaded files.
This field is the file size limit for the sum of the uploaded files.
It can be limited on the server side (after upload)
If this field is void no limit size are applied.
Send
If checked the uploaded files will be send in attachment with the mail, if not checked the mail will be send without the uploaded files.
Don't send mail
If this checkbox is checked and the uploaded files exceed the size limit the mail is not send and a report is send to the redirect page. (see UploadReport)
Upload Folder
Relative:
a Path relative to the Site or to the Document
ex: /MyFolder/
ex: ../../MyFolder/
Use the search button to find Your Upload Folder
Absolute:
an Absolute Path
ex: c:\MyFolder\
With this You can save the file outside Your web site. Simply write the full path on the server as your upload folder!
Dynamic:
a dynamic path
ex: server.MapPath("/MyFolder" & Session(User))
In this case You must enter all the ASP code to define Your Upload Path
You can make the upload folder name by including other form fields! For each field you use UploadFormRequest instead of Request.Form
Files List
The list of the File Field in Your form.
No Limit Number of Uploaded file!
Click on the file name to see/modify/insert the features applied to it.
All this features are for each file!!!
Allowed Extension
You can select which file extensions you want to allow your users to upload.
If this field is void no reTransitionalion are applied.
It can be limited on the server side (after upload) and on the client side (before upload).
To select which file extension you want to allow you must enter the list of extension/s separated by comma.
ex: .txt,.doc,.pdf
Max File Size
File upload size can be limited for each file or for the sum of all the uploaded files.
This field is the file size limit foreach uploaded files.
It can be limited on the server side (after upload) and on the client side (before upload).
The file that exceed the size are skipped
If this field is void no limit size are applied
Max Dim If Image
The pixel Image dimensions can be limeted!
It can be limited on the client side (before upload).
If one of them exceed the dimension the Upload don't start.
Tha value are in Pixels.
You can limit only Width, only Height or the two dimension.
If this field/s is/are void no limit are applied.
The test if image is on the file extension's.