954,585 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how can I identify csv file

HI,

My website has an import csv feature. how can I identify that user uploaded a csv file. when I make uploaded csv file from two different systems it shown two separate types like 'application/download' and 'application/octet-stream'. It is confusing. Is there any idea to validate a csv file. file type is varrying.

eg: Array ( [upload_csv] => Array ( [name] => contacts.csv [type] => application/octet-stream [tmp_name] => /tmp/phpSqE0Ww [error] => 0 [size] => 58 ) )

valsaraj
Newbie Poster
12 posts since Mar 2009
Reputation Points: 10
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You