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.
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.
- 'image/png' => 'png'
- 'image/jpeg' => 'jpg'
Contributions are always welcome!