Quoth Matthew Talbert: > Some more info on this problem after researching it further. It seems > if I construct a url like this: > > file:///Users/matthew/AppData/Roaming/images/image.jpg > > it works fine. The problem is adding in a drive letter. I've tried > every sort of combination possible but nothing works. For example, > this will not work: > > file://C:/Users/matthew/AppData/Roaming/images/image.jpg > > Nor will a whole host of other things, including UNC paths, etc.
As Martin noted, the following is the correct form of file URL including drive letter: file:///C:/Users/matthew/AppData/Roaming/images/image.jpg (For historic reasons, a | is usually accepted in place of the : in the drive component, since that's what the old Netscape browsers used.) The world is a little divided about what the correct form of URL is for a UNC path. The one that seems to work most universally is this: file://///servername/sharename/folder/subfolder/image.jpg Some browsers additionally accept this: file://servername/sharename/folder/subfolder/image.jpg (I haven't done any libwebkit-specific tests on these, as my usage only needed to support a local mini-http server, or occasionally data: URLs, and I'm building on Linux.) _______________________________________________ webkit-gtk mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-gtk
