# Paperclip -background process

**URL:** <https://www.ruby-forum.com/t/paperclip-background-process/193375>\
**Category:** Rails\
**Created:** [August 16, 2010, 8:18pm UTC](https://www.ruby-forum.com/t/paperclip-background-process/193375 "2010-08-16T20:18:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![df-sean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Post date:** [August 16, 2010, 8:18pm UTC](https://www.ruby-forum.com/t/paperclip-background-process/193375/1 "2010-08-16T20: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:** ![df-sean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Post date:** [August 16, 2010, 8:18pm UTC](https://www.ruby-forum.com/t/paperclip-background-process/193375/2 "2010-08-16T20:18:43Z")

</div>

(40-50 seconds for a 3MB file)

---

<div class="post-metadata">

**Author:** ![df-sean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Post date:** [August 16, 2010, 8:51pm UTC](https://www.ruby-forum.com/t/paperclip-background-process/193375/3 "2010-08-16T20: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:** ![df-sean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Post date:** [August 16, 2010, 9:28pm UTC](https://www.ruby-forum.com/t/paperclip-background-process/193375/4 "2010-08-16T21:28:39Z")

</div>

Fernando P. 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,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid
