Closed mazharoddin closed 8 years ago
Use callback_url. It should get the info from each file you upload.
For example:
<%= s3_uploader_form callback_url: new_document_url,
id: "s3_uploader",
callback_param: "document[file_url]",
expiration: 2.hours.from_now.utc.iso8601,
callback_method: "POST",
max_file_size: 10000.megabytes do %>
Document controller
class DocumentsController < ApplicationController
def new
@document = Document.create(file_params)
end
Thanks you, I will try and let you know
Hi, Thanks for this nice gem, I am able to upload single file directly to S3 using by following this tutorial http://www.akitaonrails.com/2014/03/26/heroku-tips-s3-direct-upload-carrierwave-sidekiq#.VZZJ7nWUclL, but I am not able to upload multiple files, I tried to change
multiple: true
option in view and js, but nothing is working for me, files are uploading S3, but only one image is showing if I submit the page.Here is my view code
And Js code.
Please let me know how to implement multiple file upload functionality, it would be great to if there is sample code for multiple file upload