Storehouse.Analyzer.Size (Storehouse v0.2.0)

Copy Markdown View Source

A step (Storehouse.Analyzer) that asks the store the file's size and type as stored, without reading it: %{"bytes" => …, "content_type" => …}, under "size". For a file uploaded straight to the store, whose size was what the browser said until then.

Storehouse.analyze(file, [Storehouse.Analyzer.Size])