Subject: | Data::FormValidator::Constraints::Upload::file_format corrupts files |
Hello,
First, thank you for creating the Upload constraints module. This is
really handy and will save me a lot of coding. I've found what I think
is a problem with the module or maybe its interaction with File::MMagic.
When I use the file_format constraint, my files are corrupted. They are
missing 2 bytes. It seems maybe this is the data that is being read to
validate the file type, but the file handle is being modified.
I'm using the latest version of Data::FormValidator::Constraints::Upload
from CPAN and perl 5.8.4.
Thanks,
Phillip Moore