# Upload file and display thumbnail immediately on form

**URL:** <https://www.ruby-forum.com/t/upload-file-and-display-thumbnail-immediately-on-form/187380>\
**Category:** Rails\
**Created:** [April 22, 2010, 11:59am UTC](https://www.ruby-forum.com/t/upload-file-and-display-thumbnail-immediately-on-form/187380 "2010-04-22T11:59:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ESESES](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/f0a364/32.png) [@ESESES](https://www.ruby-forum.com/u/ESESES)\
**Post date:** [April 22, 2010, 11:59am UTC](https://www.ruby-forum.com/t/upload-file-and-display-thumbnail-immediately-on-form/187380/1 "2010-04-22T11:59:42Z")

</div>

Does anyone know how to upload a photo and display the thumbnail in  
the form before submitting with Paperclip?

---

<div class="post-metadata">

**Author:** ![ESESES](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/f0a364/32.png) [@ESESES](https://www.ruby-forum.com/u/ESESES)\
**Post date:** [April 22, 2010, 3:25pm UTC](https://www.ruby-forum.com/t/upload-file-and-display-thumbnail-immediately-on-form/187380/2 "2010-04-22T15:25:13Z")

</div>

On 22 Apr 2010, at 11:56, ES wrote:

> Does anyone know how to upload a photo and display the thumbnail in  
> the form before submitting with Paperclip?

Clientside resizing is available in SWFUpload. Have fun (you’ll have  
to write the javascript yourself though)!

[http://demo.swfupload.org/v250beta3/resizedemo/index.php](http://demo.swfupload.org/v250beta3/resizedemo/index.php)

Best regards

Peter De Berdt
