Pure PHP Upload 2.1 Tutorials - Simple File Upload

Simple File Upload

In this tutorial we will explain how to do a simple file upload using the Pure PHP Upload extension.


How to do it

To make a simple file upload you need to:

  1. Create a new page
    You should open a new page in Dreamweaver MX. Of course an existing one will do well also.

  2. Add a file upload field and a form on it

  3. Add a submit button
    To be able to submit the form you will need an submit button.

  4. Save the file in your site
    You will need to save the file in your site because Pure PHP Upload has to know your site location. It will add some more files to it - you will be informed about that so you can upload those also to your server.

  5. Create an upload folder, and give it the appropriate security
    Usually you will create an upload folder somewhere inside your site.
  6. For setting the appropriate security read Setting the folder security on your server tutorial

  7. Insert the Pure PHP Upload server behavior on your page
    Choose the Pure PHP Upload Server Behavior from the Server Behavior palette / DMXzone / Pure PHP Upload category.

  8. Choose the created directory
    For this simple tutorial you don't need to fill in anything in the extension dialog - only select the upload folder and then press OK
  9. 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 upload any file.