# paperclip -background process

**URL:** <https://discuss.rubyonrails.org/t/paperclip-background-process/53665>\
**Category:** rubyonrails-talk\
**Created:** [August 16, 2010, 6:18pm UTC](https://discuss.rubyonrails.org/t/paperclip-background-process/53665 "2010-08-16T18:18:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [August 16, 2010, 6:18pm UTC](https://discuss.rubyonrails.org/t/paperclip-background-process/53665/1 "2010-08-16T18:18:08Z")

</div>

I have found that it takes about 40-50 seconds from my home computer to upload a file to my website. I have been looking around at various blogs, regarding background processing with paperclip, but it seems all of them involve doing only the image conversion in the background. Here is an example: [http://loo.no/2009/07/26/background-processing-with-paperclip](http://loo.no/2009/07/26/background-processing-with-paperclip)

Is it possible to put the actual file upload itself into a background process?

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [August 16, 2010, 6:18pm UTC](https://discuss.rubyonrails.org/t/paperclip-background-process/53665/2 "2010-08-16T18:18:43Z")

</div>

(40-50 seconds for a 3MB file)

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [August 16, 2010, 6:51pm UTC](https://discuss.rubyonrails.org/t/paperclip-background-process/53665/3 "2010-08-16T18:51:21Z")

</div>

> Is it possible to put the actual file upload itself into a background process?

No you can't, your web browser must keep its window active with the upload page, if you redirect or whatever during upload, then uploading breaks.

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [August 16, 2010, 7:28pm UTC](https://discuss.rubyonrails.org/t/paperclip-background-process/53665/4 "2010-08-16T19:28:39Z")

</div>

Fernando Perez wrote:

> > Is it possible to put the actual file upload itself into a background process?
> 
> No you can't, your web browser must keep its window active with the upload page, if you redirect or whatever during upload, then uploading breaks.

However, you could use a second browser window or even an iframe to improve the UI.

Best,
