# Uploading and playing .mp4 files in rails application

**URL:** <https://www.ruby-forum.com/t/uploading-and-playing-mp4-files-in-rails-application/195522>\
**Category:** Rails\
**Created:** [September 24, 2010, 10:52am UTC](https://www.ruby-forum.com/t/uploading-and-playing-mp4-files-in-rails-application/195522 "2010-09-24T10:52:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![atheeq](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/3be4f8/32.png) [@atheeq](https://www.ruby-forum.com/u/atheeq)\
**Post date:** [September 24, 2010, 10:52am UTC](https://www.ruby-forum.com/t/uploading-and-playing-mp4-files-in-rails-application/195522/1 "2010-09-24T10:52:47Z")

</div>

can any one let me know how to proceed with this? Or do we have any  
pluggin for this?

Thanks in advance 🙂

---

<div class="post-metadata">

**Author:** ![atheeq](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/3be4f8/32.png) [@atheeq](https://www.ruby-forum.com/u/atheeq)\
**Post date:** [September 24, 2010, 2:40pm UTC](https://www.ruby-forum.com/t/uploading-and-playing-mp4-files-in-rails-application/195522/2 "2010-09-24T14:40:16Z")

</div>

Uploading is simple, there’s Paperclip or attachment\_fu or plenty of  
other file upload widgets already there. For playing, you just need to  
make a partial that includes the QuickTime object/embed code, and  
insert your movie within it. Here’s one for Flash, extracted from an  
ad review system that uses Paperclip for its file storage:  
[http://pastie.textmate.org/1179080](http://pastie.textmate.org/1179080)

Making one for QuickTime would just be a matter of looking at a  
working QuickTime page and parameterizing the values you need to send  
from your application.

Walter
