From 5ce40d0971ef2eb00f2f38510371a687a5764aaa Mon Sep 17 00:00:00 2001 From: sdogruyol Date: Wed, 12 Oct 2016 16:56:40 +0300 Subject: [PATCH] v0.16.1 --- CHANGELOG.md | 18 +++++++++++++++++- shard.yml | 2 +- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3574e8a..1095ffa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ +# 0.16.1 (12-10-2016) + +- Improved Multipart support with more info on parsed files. `parse_multipart(env)` now yields +an `UploadFile` object which has the following properties `field`,`data`,`meta`,`headers. + +```crystal +post "/upload" do |env| + parse_multipart(env) do |f| + image1 = f.data if f.field == "image1" + image2 = f.data if f.field == "image2" + puts f.meta + puts f.headers + "Upload complete" + end +end + # 0.16.0 - Multipart support <3 (thanks @RX14). Now you can handle file uploads. @@ -24,7 +40,7 @@ Kemal.config.session["expire_time"] = 48.hours - Static file caching with etag and gzip (thanks @crisward) - `Kemal.run` now accepts port to listen. -# 0.15.1 (05-09-2015) +# 0.15.1 (05-09-2016) - Don't forget to call_next on NullLogHandler diff --git a/shard.yml b/shard.yml index 2cac778..01f07a0 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: kemal -version: 0.15.1 +version: 0.16.1 dependencies: radix: