pdl / Articulate

Lightweight Perl CMS Framework
Other
2 stars 2 forks source link

Support Binary data #24

Closed pdl closed 9 years ago

pdl commented 9 years ago

It's probably not a great idea to slurp it in and perform string ops on it, is it? Do a POC to demonstrate that you can upload and serve images.

pdl commented 9 years ago

Now implemented, though a little clunky. We use Dancer::Request::Upload to preserve the file all the way to putting it in storage (probably ought to hold that behind an Articulate class that represents a file). We can also retrieve it and it does send_file, though that isn't ideal for images etc.

pdl commented 9 years ago

Content type now working ok for examples/plain-speaking. This is functional