Skip to content

Commit

Permalink
Make mention of data uri support #35
Browse files Browse the repository at this point in the history
  • Loading branch information
choonkeat committed Mar 29, 2016
1 parent bd724d5 commit bd19478
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
attache (2.1.1)
attache (2.2.0)
activesupport
celluloid (< 0.17)
connection_pool (~> 2.2)
Expand Down Expand Up @@ -81,7 +81,7 @@ GEM
fog-atmos (0.1.0)
fog-core
fog-xml
fog-aws (0.9.1)
fog-aws (0.9.2)
fog-core (~> 1.27)
fog-json (~> 1.0)
fog-xml (~> 0.1)
Expand All @@ -94,7 +94,7 @@ GEM
builder
excon (~> 0.45)
formatador (~> 0.2)
fog-dynect (0.0.2)
fog-dynect (0.0.3)
fog-core
fog-json
fog-xml
Expand Down Expand Up @@ -191,13 +191,13 @@ GEM
minitest (5.8.4)
multi_json (1.11.2)
nenv (0.3.0)
net-ssh (3.0.2)
net-ssh (3.1.1)
nokogiri (1.6.7.2)
mini_portile2 (~> 2.0.0.rc2)
notiffany (0.0.8)
nenv (~> 0.1)
shellany (~> 0.0)
paperclip (4.3.5)
paperclip (4.3.6)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
cocaine (~> 0.5.5)
Expand All @@ -209,7 +209,7 @@ GEM
slop (~> 3.4)
puma (2.16.0)
rack (1.6.4)
rake (11.1.0)
rake (11.1.1)
rb-fsevent (0.9.7)
rb-inotify (0.9.7)
ffi (>= 0.5.0)
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ The main app front end will receive a unique `path` for each uploaded file - the
Attache will download the file from `url` supplied and uploads it through the regular `/upload` handler. So be expecting the same json response after upload. works with `GET`, `POST`, `PUT`.

Data URIs (aka base64 encoded file binaries) can also be uploaded to the same `/upload_url` endpoint through the same `url` parameter.

#### Download

Whenever the main app wants to display the uploaded file, constrained to a particular size, it will use a helper method provided by the `attache` lib. e.g. `embed_attache(path)` which will generate the necessary, barebones markup.
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN useradd -d /app -m app
RUN chown -R app /usr/local/bundle
USER app

RUN gem install --no-ri --no-rdoc attache --version '>= 2.1.1'
RUN gem install --no-ri --no-rdoc attache --version '>= 2.2.0'
RUN mkdir -p /app/src
WORKDIR /app/src
RUN echo 'gem "attache"' > Gemfile && bundle
Expand Down
2 changes: 1 addition & 1 deletion lib/attache/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Attache
VERSION = "2.1.1"
VERSION = "2.2.0"
end

0 comments on commit bd19478

Please sign in to comment.