-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use the s3_uploader
helper inside an existing form?
#227
Comments
Set the callback-param to the field in the form and then bind the s3_upload_complete event to fill it.
|
@KranthiKishore It should be possible to do on the master branch of this Gem. |
I'm trying to have other form elements to be posted to my app server, but it does not work. The
I'm loading the jQuery file upload helper like this: $(function () {
$("#s3-uploader").S3Uploader();
}); And here is the (haml) code related to the form (notice the absence of the = form_for @video do |f|
= s3_uploader callback_param: "video[direct_upload_url]", id: "s3-uploader" do
= f.file_field :file, name: 'file', multiple: true , data: { url: s3_uploader_url }
= f.text_field :title
= f.submit Is that the way to do it? |
@cawel did you figure this out? |
Hi All,
I already have a from which submits some data to server from backbone. I want to use this gem in the existing form to upload file to S3 from client side(BackBone). How can I use this? If not, request to suggest any alternative ways to upload file to S3 from client side(by using them inside an existing form).
Thanks in advance.
The text was updated successfully, but these errors were encountered: