# Quicktime Movie from Hard Disk

**URL:** <https://www.ruby-forum.com/t/quicktime-movie-from-hard-disk/171681>\
**Category:** Rails\
**Created:** [July 7, 2009, 4:40pm UTC](https://www.ruby-forum.com/t/quicktime-movie-from-hard-disk/171681 "2009-07-07T16:40:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![coldie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/5f9b8f/32.png) [@coldie](https://www.ruby-forum.com/u/coldie)\
**Post date:** [July 7, 2009, 4:40pm UTC](https://www.ruby-forum.com/t/quicktime-movie-from-hard-disk/171681/1 "2009-07-07T16:40:39Z")

</div>

Hi there,

i want to embed a Quicktime-Movie on my Page.  
I use the following code:

Getting the file by an internet-adress erverything is fine, but it  
doesn’t apply by using the path from my hard-disk.

Is their a special usage of describing path-names in rails?

---

<div class="post-metadata">

**Author:** ![coldie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/5f9b8f/32.png) [@coldie](https://www.ruby-forum.com/u/coldie)\
**Post date:** [July 7, 2009, 7:12pm UTC](https://www.ruby-forum.com/t/quicktime-movie-from-hard-disk/171681/2 "2009-07-07T19:12:41Z")

</div>

On Tue, Jul 7, 2009 at 10:40 AM, Hans  
Hartmann[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> doesn’t apply by using the path from my hard-disk.  
> Well a file url looks something like this:

file:///Z:/09002\_R/client/090423\_1730/RO.mov

But if that works at all, it will only work on YOUR computer, or at  
least one which has that file in that place on a local Z disk.

I think that most browsers balk at such a URL anyway when it’s  
received from a server.

> Is their a special usage of describing path-names in rails?

If you want to serve up the file, you need to put it under the public  
directory, say in a movies subdirectory, and then use a path like

movies/movie\_name.mov

I’m not sure what your directory structure means you could have a  
subdirectory structure under public/movies the point is that the url  
path should be relative to the public dir.

–  
Rick DeNatale

Blog: [http://talklikeaduck.denhaven2.com/](http://talklikeaduck.denhaven2.com/)  
Twitter: [http://twitter.com/RickDeNatale](http://twitter.com/RickDeNatale)  
WWR: [http://www.workingwithrails.com/person/9021-rick-denatale](http://www.workingwithrails.com/person/9021-rick-denatale)  
LinkedIn: [http://www.linkedin.com/in/rickdenatale](http://www.linkedin.com/in/rickdenatale)

---

<div class="post-metadata">

**Author:** ![coldie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/5f9b8f/32.png) [@coldie](https://www.ruby-forum.com/u/coldie)\
**Post date:** [July 14, 2009, 6:39pm UTC](https://www.ruby-forum.com/t/quicktime-movie-from-hard-disk/171681/3 "2009-07-14T18:39:30Z")

</div>

And what can i do, if the file is some “levels” higher than my  
public-folder. Is there a possibility to browse “back”. I tried so much  
… but nothing worked.

---

<div class="post-metadata">

**Author:** ![coldie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/5f9b8f/32.png) [@coldie](https://www.ruby-forum.com/u/coldie)\
**Post date:** [July 15, 2009, 10:01am UTC](https://www.ruby-forum.com/t/quicktime-movie-from-hard-disk/171681/4 "2009-07-15T10:01:02Z")

</div>

No, there isn’t - barring sneaky stuff involving send\_file, you’ll  
need to put the file someplace that gets served to the web.

If you weren’t on Windows, I’d suggest trying a symlink, but Windows  
doesn’t support that.

–Matt J.

On Jul 14, 12:39 pm, Hans H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
