multiple upload support
Closed this issue · 1 comments
zachlevy commented
How can I upload multiple photos?
I'm using the maxFiles
option which allows me to upload multiple files to filestack servers.
<%= form.filestack_field :photos, 'Upload', pickerOptions: { accept: ["image/*"], maxFiles: 6 } %>
I'm expecting uploading 2 photos to give me a url to grab both photos from.
<input id="mymodel_photos" style="display:none" type="text" name="mymodel[photos]">
$('#mymodel_photos').val();
returns a just the first file url like https://cdn.filestackcontent.com/IjTo4OxQvi7dwepWfjCH
inspecting params doesn't show any other fields.
<ActionController::Parameters {
"mymodel"=>{
"photos"=>"https://cdn.filestackcontent.com/IjTo4OxQvi7dwepWfjCH",
}, "commit"=>"Create Mymodel",
} permitted: false>