Pure ASP.NET Upload Tutorials
Optional file upload
Optional file upload
In this tutorial we will explain how to make an optional file upload.
How to do it
To make an optional file upload, you need to:
- Start with basic upload page
Start with an upload page where you have Pure ASP.NET Upload on it. If you haven't done it yet, go through the Simple file upload tutorial.
- Open the Pure ASP.NET Upload dialog
Select the Pure ASP.NET Upload dialog by opening the Server Behaviors Panel. Select DMXzone - Pure ASP.NET Upload.
- Make the upload optional
- Save and done
When you need to have an optional upload you only have to clear the Require Upload checkbox.
Then the users won't get a warning when they try to submit the page without specifing a file to upload.
Save your page and upload it to your server, and you are done! Go to your website and test it - you should be able to skip the file upload now.
George Petrov
George Petrov is a renowned software writer and developer whose extensive skills brought numerous extensions, articles and knowledge to the DMXzone- the online community for professional Adobe Dreamweaver users. The most popular for its over high-quality Dreamweaver extensions and templates.
George is also the founder of Wappler.io - the most Advanced Web & App Builder