| Topic : CMMI on the Web |
|
|
PHP Experts
|
|
Activity:
Question posted: 01 20 2010 13:42:53 +0000,
3 answers, 440 views, last activity
04 23 2012 05:02:22 +0000
|
|
hi,
I have form where administrator has toupload csv file to update dome
data in mysql.
I was trying to validate entered file but got some crazy stuff I don't
understand:
for the same uploaded csv file, in different browser I'll get different
results:
Windows machine and IE: $_FILES['UploadedFile']['type'] = 'text/plain'
Windows machine and Firefox: $_FILES['UploadedFile']['type'] =
'application/octet-stream'
Windows machine and Opera: $_FILES['UploadedFile']['type'] =
'comma-separated-values'
Windows machine and Chrome: $_FILES['UploadedFile']['type'] = ''
(doesn't show anything! empty?!?!!??)
openSuse machine and Firefox: $_FILES['UploadedFile']['type'] = 'text/csv'
openSuse machine and Opera: $_FILES['UploadedFile']['type'] =
'text/comma-separated-values'
openSuse machine and Konqueror: $_FILES['UploadedFile']['type'] = 'text/csv'
ok. what's CORRECT way to validate uploaded file?

- Create a confidential Career Profile and Resume/C.V. online
- Get advice for planning their career and for marketing of experience and skills
- Maximize awareness of and access to the best career opportunities
|
|
|
|
|
|
|
|
|
|
hi, I have form where administrator has toupload csv file to update dome data in mysql. I was trying to validate entered file but got some crazy stuff I don't understand: for the same uploaded csv file, in different browser I'll get different... |
100 - 200 input pattern javascript validation |
Can i get all the session value in a iframe page. |