PHP Classes

PHP code to identify uploaded file format: I need a code to identify the file format of uploaded file

Recommend this page to a friend!
  All requests RSS feed  >  PHP code to identify uploaded file fo...  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

PHP code to identify uploaded file format

Edit

Picture of Hillina by Hillina - 8 years ago (2015-05-13)

I need a code to identify the file format of uploaded file

This request is clear and relevant.
This request is not clear or is not relevant.

0

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.

Ask clarification

5 Recommendations

Metyl PHP MIME Type Check: Check a file to detect its MIME type

This recommendation solves the problem.
This recommendation does not solve the problem.

0

Picture of wim niemans by wim niemans package author package author Reputation 50 - 1 year ago (2022-04-28) Comment

This freeware class can be used to generated and check the mime type of files.


PHP Multi File Uploader: Validate and process one or more file uploads

This recommendation solves the problem.
This recommendation does not solve the problem.

0

Picture of MOUSTAFA ELGAMMAL by MOUSTAFA ELGAMMAL package author package author Reputation 185 - 7 years ago (2016-02-29) Comment

check this uploader


PHP AJAX Upload file: Process image files uploaded via AJAX

This recommendation solves the problem.
This recommendation does not solve the problem.

0

Picture of Ravi Kumar by Ravi Kumar package author package author Reputation 90 - 8 years ago (2015-08-03) Comment

hope this helps you, if you find any difficulty ask here http://www.phpclasses.org/discuss/package/8649/


Simple PHP File Uploader: Validate and process uploaded files

This recommendation solves the problem.
This recommendation does not solve the problem.

0

Picture of Pak Xpertz by Pak Xpertz package author package author Reputation 50 - 8 years ago (2015-06-15) Comment

hi. here is what you are looking for. this is a simple file uploader class in php


HTTP Upload: Handle files uploaded via Web forms

This recommendation solves the problem.
This recommendation does not solve the problem.

+1

Picture of Dave Smith by Dave Smith Reputation 6845 - 8 years ago (2015-05-13) Comment

Here is one that filter file uploads by extension and mime type and has a high user rating. It should do the trick.


Recommend package
: 
: