Skip to content

Latest commit

 

History

History
24 lines (12 loc) · 915 Bytes

README.md

File metadata and controls

24 lines (12 loc) · 915 Bytes

Php Secure File Upload

This repo contains php code to securely upload files to a web server. Never trust files uploaded by user, this code helps you to authenticate files uploaded by userto ensure the security of your program and server. Add more file mime types in the allowed types array to allow more file types for upload.

Installation

Add and customize the code in your php script that uploads files to the server or just follow the simple example in the index.html file. Specify the directory where the files are to be stored on the server.

Allowed MIME types (can be extended to allow more file types including MS document formats)

  • 'image/png' => 'png'
  • 'image/jpeg' => 'jpg'

Contributing

Contributions are always welcome!