JSON File Upload is a class to validate and process files uploaded via Web forms. It can perform several types of validation, e.g. check whether the user computer IP address is not in a list of banned addresses, check the file size against a given limit, check whether the file name has one of the accepted extensions, and check whether file with the same name was previously uploaded. After validating the file, the class can move it to a given upload folder and add an entry in a log file that records information about uploaded files. The example demonstrates how to display an updated list of files stored in the upload folder.
|Tags||Software Development Libraries php classes|