Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
August 31, 2006, 2:50 am
rate this thread
database. The problem is sometimes a user will upload the raw excel or
access file. How can I perform some simple checks to determine if the
file is binary. I could do some regular expressions to check for
unusual characters, but how would I read the file line by line?
Re: How to check if uploaded file is binary or ascii?
how about check the type-value? It should tell the mime-type of the file.
Couldn't you use that to filter out the idiots?
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti pivittyv nettisarjis
email@example.com || Gedoon-S @ IRCnet || rot13(firstname.lastname@example.org)