# JQuery-File-Upload Button dependencies

**URL:** <https://discuss.rubyonrails.org/t/jquery-file-upload-button-dependencies/65543>\
**Category:** rubyonrails-talk\
**Created:** [October 25, 2012, 9:18am UTC](https://discuss.rubyonrails.org/t/jquery-file-upload-button-dependencies/65543 "2012-10-25T09:18:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![akvarel1](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@akvarel1](https://discuss.rubyonrails.org/u/akvarel1)\
**Post date:** [October 25, 2012, 9:18am UTC](https://discuss.rubyonrails.org/t/jquery-file-upload-button-dependencies/65543/1 "2012-10-25T09:18:48Z")

</div>

I am using this [application example](https://github.com/tors/jquery-fileupload-rails-paperclip-example) and try to model it to fit my needs.

I am modelling your index.html.erb to fit my needs.

I want to get rid of “start” button in order to prevent single-file upload (I dont want it), but it seems that “start upload”(multiple upload)-button is on “start” button dependent and I could not find how to modify the script in order to get rid of “start”-buttom but to keep the functionality of a “start upload” -button.

Can you give me some hints how to get rid of those dependencies?

Hier is the short code cut-off:

I have marked the lines where “start upload” and “start” buttons are situated with !!!.

## Upload file

\<%= form\_for Upload.new, :html =\> { :multipart =\> true, :id =\> “fileupload” } do |f| %\>

 

 

Add files…

 

\<%= f.file\_field :upload %\>

 

!!! Start upload

Cancel upload

Delete

  

\<% end %\>

Thank you.

Cheers, Katja
