I know this question is asked before but my case is different. I don't want to browse the client's computer, I want to add the "post it" button to the image he was drawing. it's a drawing web app. I don't think this needs any code from me. Thanks a lot. EDIT: Rails html
<%= form_for @post, html: { multipart: true } do |f| %>
<br>
<%= f.label :image %>
<%= f.file_field :image, id: "pictureInput", class: "pictureInput" %> <<---
<%= f.text_area :title %>
<%= f.label :title %>
<br>
<%= f.submit %>
<% end %>
<div id="post-image-preview">
</div>
The js is drawing on a canvas.