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.
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.