Skip to content
This repository was archived by the owner on Jan 26, 2025. It is now read-only.

Commit 0856044

Browse files
committed
Update README.md
1 parent 0b9562e commit 0856044

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ Also in the view, you'll need to tell it where to go:
7474
@library_file should be your model, where :payload is the method which holds the file contents, so that when plupload uploads the files (it hits #create once for each file) it will put the uploaded file in params[:library_file][:payload] which you can then read like this in your controller:
7575

7676
params[:library_file][:payload] = params[:library_file][:payload].read
77+
# Note: there is no need to do this with libraries that expect an instance of
78+
# UplodedFile as opposed to the contents. For example, with CarrierWave, leave
79+
# this line out.
7780

7881
Then if you're storing it in the DB, you let it continue on to
7982

0 commit comments

Comments
 (0)