|All requests||>||PHP code to identify uploaded file fo...||>||Request new recommendation||>||Featured requests||>||No recommendations|
by Hillina - 5 years ago (2015-05-13)
I need a code to identify the file format of uploaded file. I need only .CSV and JSON files to be uploaded. Otherwise the user should receive a message to correct the file being uploaded.
hope this helps you, if you find any difficulty ask here http://www.phpclasses.org/discuss/package/8649/
hi. here is what you are looking for. this is a simple file uploader class in php
Here is one that filter file uploads by extension and mime type and has a high user rating. It should do the trick.