[Dancer-users] Testing image upload

Stephen Fenwick-Paul stephen at activeg.org
Tue Nov 8 12:22:18 CET 2011


I've can successfully upload an image from a browser but using the same
route in my test suite with this:

$response = dancer_response( POST => '/auth/location/1011/image',
                                    params => {},
                                    files => [{name => 'file', filename =>


(taken from the

I get the error:

"libpng error: PNG file corrupted by ASCII conversion"

so I'm guessing the test is missing something that the browser is doing?
Any ideas?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20111108/6a6d7784/attachment.html>

More information about the Dancer-users mailing list