Put method ? #41

lbstephane opened this Issue Jan 15, 2013 · 1 comment


None yet
2 participants

Is it possible to implement a PUT method as the post one.

My uploaded file_url is a part of a document containing some informations as "name", "description" etc.

I would like to be able to update the file_url for a specific document.

So I tried to use the code in my form :

<%= s3_uploader_form post: edit_medium_path(@Medium), as: "medium[file_url]", id: "myS3Uploader" do %>
<%= file_field_tag :file, multiple: false %>
<% end %>

But, it doesn't work cos update method need PUT not POST.

I tried to use the Create method passing the id with the data: option but I don't really understand how to use it and if it is possible.

Thanks for your help.



waynehoover commented Apr 21, 2013

Yes, there is now an option you can pass to the helper method callback_method in which you can specific the method, see the readme for an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment