in reply to Upload security question

Assuming that you are expecting the uploaded file to be in a particular format to pre-populate the data correctly, you should probably actually check the format of the contents of the file to ensure it meets your requirements.

I would say that you should consider running under taint mode and use a regex to check the format of the file, but I don't know if the contents of the file are considered tainted or not (anyone?)

Also, I'm not sure I'd rely on your server settings to manage file upload size. Of course it would work, but you would potentially be limiting future development as it's a per-server setting. Instead, you might consider using an internal test for this. Data::FormValidator offers a constraint for file size (Data::FormValidator::Constraints::Uploads::file_max_bytes) so you wouldn't have to write it yourself. If you go that route, you can use the D::FV framework to also check the contents of the uploaded file.

perl -e 'split//,q{john hurl, pest caretaker}and(map{print @_[$_]}(joi +n(q{},map{sprintf(qq{%010u},$_)}(2**2*307*4993,5*101*641*5261,7*59*79 +*36997,13*17*71*45131,3**2*67*89*167*181))=~/\d{2}/g));'