Quicktime Movie from Hard Disk

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?

On Tue, Jul 7, 2009 at 10:40 AM, Hans
Hartmann[email protected] 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/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale

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.

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. [email protected]