# Upload

**URL:** <https://discuss.rubyonrails.org/t/upload/63393>\
**Category:** rubyonrails-talk\
**Created:** [March 27, 2012, 11:22am UTC](https://discuss.rubyonrails.org/t/upload/63393 "2012-03-27T11:22:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aaron\_Schmitz](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@Aaron\_Schmitz](https://discuss.rubyonrails.org/u/Aaron_Schmitz)\
**Post date:** [March 27, 2012, 11:22am UTC](https://discuss.rubyonrails.org/t/upload/63393/1 "2012-03-27T11:22:09Z")

</div>

hello everyone,

i have written an upload controller which handles files in a multipart- form. it scans through the bytes to check if it's an acceptable file. my problem is to get the progress of the upload of a single file. i loop through my params to move every file to the server and it's working properly.

is there a method to check whether a file has been completely transfered (in rails!)?

regards

---

<div class="post-metadata">

**Author:** ![Alex\_Shi](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@Alex\_Shi](https://discuss.rubyonrails.org/u/Alex_Shi)\
**Post date:** [March 27, 2012, 11:25am UTC](https://discuss.rubyonrails.org/t/upload/63393/2 "2012-03-27T11:25:53Z")

</div>

before u r uploading file,u could get the size of file.so compare the size.

---

<div class="post-metadata">

**Author:** ![Aaron\_Schmitz](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@Aaron\_Schmitz](https://discuss.rubyonrails.org/u/Aaron_Schmitz)\
**Post date:** [March 27, 2012, 1:59pm UTC](https://discuss.rubyonrails.org/t/upload/63393/3 "2012-03-27T13:59:45Z")

</div>

i've got a multipart-form with

&nbsp;&nbsp;&nbsp;\<%= file\_field\_tag 'objects', :id =\> 'file', :multiple =\> true %\>

rails does the upload when i click on "go". in firebug i can see that there is a post 200 going on and i can see how long the upload takes. how can i access this whithout ajax?

---

<div class="post-metadata">

**Author:** ![Alex\_Shi](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@Alex\_Shi](https://discuss.rubyonrails.org/u/Alex_Shi)\
**Post date:** [March 27, 2012, 2:14pm UTC](https://discuss.rubyonrails.org/t/upload/63393/4 "2012-03-27T14:14:34Z")

</div>

oh.sorry.u’d better get to know subprocess.certainly,subprocess is a way in python.

---

<div class="post-metadata">

**Author:** ![Frederick\_Cheung](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/frederick_cheung/32/3901_2.png) [@Frederick\_Cheung](https://discuss.rubyonrails.org/u/Frederick_Cheung)\
**Post date:** [March 27, 2012, 6:33pm UTC](https://discuss.rubyonrails.org/t/upload/63393/5 "2012-03-27T18:33:31Z")

</div>

> i've got a multipart-form with
> 
> &nbsp;&nbsp;\<%= file\_field\_tag 'objects', :id =\> 'file', :multiple =\> true %\>
> 
> rails does the upload when i click on "go". in firebug i can see that there is a post 200 going on and i can see how long the upload takes. how can i access this whithout ajax?

The only way I know of accessing upload progress info is either using a flash uploader or an apache module like [GitHub - drogus/apache-upload-progress-module: Upload progress module for apache](https://github.com/drogus/apache-upload-progress-module) (there is an equivalent plugin for nginx if my memory is correct)

Fred
