If I include a link like this in a view: <a href="http://www.ruby-forum.com">GO!</a> The link works normally. But this: <a href="file://var/www/html/index.html">GO!</a> is somehow blocked, and there is NO ERROR OR OTHER FORM OF EXPLANATION OR NOTIFICATION by webrick, rails, et. al. That is very un-user, un-programmer, un-friendly and I should sue ;] How can I access a local file url??? -- Posted via http://www.ruby-forum.com/.
I''m *pretty sure* this is just a function of your browser''s security model not allowing access to filesystem URIs from an http:// page. Either way though, its not anything Rails has to do with. On Jun 3, 7:41 pm, Mk 27 <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> If I include a link like this in a view: > > <a href="http://www.ruby-forum.com">GO!</a> > > The link works normally. But this: > > <a href="file://var/www/html/index.html">GO!</a> > > is somehow blocked, and there is NO ERROR OR OTHER FORM OF EXPLANATION > OR NOTIFICATION by webrick, rails, et. al. That is very un-user, > un-programmer, un-friendly and I should sue ;] > > How can I access a local file url??? > -- > Posted viahttp://www.ruby-forum.com/.
pharrington wrote:> I''m *pretty sure* this is just a function of your browser''s security > model not allowing access to filesystem URIs from an http:// page. > Either way though, its not anything Rails has to do with.Yep! I would never have guessed that. There is no way to disable this AFAICT either. But I started apache (default port 80) and then used http://localhost/filesystem/somepath/etc and that works. Much thanks -- Posted via http://www.ruby-forum.com/.