Skip to content

mpiers110/php-secure-file-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published