The stupid question is the question not asked | |
PerlMonks |
Problem with uploaded (http) files with File::MMagicby Anonymous Monk |
on Dec 22, 2012 at 15:15 UTC ( [id://1010022]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: I will try to explain this as clearly as I can. I would appreciate your help very much. I am using File::MMagic module to determine if a particular file is an mpeg file. I have tried this on 2 separate hosted linux systems. Here is what I do
I upload mp3 file via HTML form and then check its mime type. For the same file, it worked on one system, but failed on the other. I get the following error
I checked the Perl module version using
It showed 1.27 on both systems if I do a uname -a, it gives me For the system where it fails,
For the system where it works,
I even ftp'd the mpeg file on which it is failing, to the system where it works. It did not have problems and determined the mime type fine. What confuses me it that existing mp3 files work fine on both systems. But if I upload a file using http, it seems to be failing on one of the systems. It appears like files uploaded via http on one of the systems Any suggestions as to why this may be happening. Thanks
Back to
Seekers of Perl Wisdom
|
|