MyPage is a personalized page based on your interests.The page is customized to help you to find content that matters you the most.

I'm not curious

Uploading Files Securely with PHP

Course Summary

Develop a PHP class that requires only a few lines of code to handle single- and multi-file uploads both flexibly and securely.       

  • +

    Course Syllabus

       What you should know before watching this course
       Using the exercise files
    1. File-Upload Basics
       How PHP handles file uploads
       Examining the $_FILES array
       Setting the maximum file size
       Preparing the upload folder
       Moving the file to its destination
       Limitations on file uploads
    2. Creating a File-Upload Class
       Planning the class's features
       Creating and using a namespaced class
       Creating the class constructor
       Getting a reference to the uploaded file
       Checking the error level
       Displaying errors and other messages
       Setting and checking the maximum file size
       Strengthening the setMaxSize() method
    3. Making the Class More Secure
       Restricting acceptable MIME types
       Removing spaces from file names
       Restricting acceptable file-name extensions
       Neutralizing potentially dangerous uploads
       Renaming files with duplicate names
       Moving the file to its destination
    4. Handling Multiple File Uploads
       Understanding how the $_FILES array handles multiple files
       Adapting the class to handle both single and multiple uploads
    5. Using the Class
       Overview of the UploadFile class
       Setting up to use the class
       Using the class
       Reporting errors with multiple uploads
       Displaying the server limits
       Alerting the user about exceeding the server limits
       Changing the class's defaults


Course Fee:
USD 25

Course Type:


Course Status:



3 - 4 hours / week

This course is listed under Open Source , Development & Implementations and Networks & IT Infrastructure Community

Attended this course?

Back to Top

Awards & Accolades for MyTechLogy
Winner of
Top 100 Asia
Finalist at SiTF Awards 2014 under the category Best Social & Community Product
Finalist at HR Vendor of the Year 2015 Awards under the category Best Learning Management System
Finalist at HR Vendor of the Year 2015 Awards under the category Best Talent Management Software
Hidden Image Url

Back to Top