Team LiB
Previous Section Next Section

Uploading a File using Your Form and Script

This is the moment of truth, where you hold your breath and test the script.

  1. Open your web browser and type http://127.0.0.1/upload_form.html.

  2. Use the Browse button to locate a file you want to upload.

    Note 

    This example uses a file on my own machine, so the figures won't look quite the same as your results.

    The full path to the file should appear in the form field.

    Click To expand
  3. Click on the Upload File button.

The results screen should appear, providing information about the file you just uploaded.

Note 

Allow your file upload script to be used only by yourself or other trusted sources, unless you limit the types of files you want to upload by checking the file type before copying to the system.

Click To expand

There's nothing to it! You're now a file system wizard. In the next chapter, you'll become a database wizard as well.


Team LiB
Previous Section Next Section