Pure PHP Upload 2.1 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:

  1. Start with basic upload page
    Start with an upload page where you have Pure PHP Upload on it. If you haven't done it yet, go through the Simple file upload tutorial.

  2. Open the Pure PHP Upload dialog
    Select the Pure PHP Upload dialog by opening the Server Behaviors Panel. Select DMXzone - Pure PHP Upload.
  3. Make the upload optional
    When you need to have an optional upload you only have to clear the Require Upload checkbox.
  4. Then the users won't get a warning when they try to submit the page without specifing a file to upload.

  5. Save and done
    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.