File URI scheme ▪ Sale

The file URI scheme is a URI scheme specified in RFC 1630 and RFC 1738, typically used to retrieve files from within one's own computer.

## Format

A file URL takes the form of

File_URI_scheme"//host/path


where host is the fully qualified domain name of the system on which the path is accessible, and path is a hierarchical directory path of the form directory/directory/.../name. If host is omitted, it is taken to be "localhost", the machine from which the URL is being interpreted. Note that when omitting host you do not omit the slash ("File_URI_scheme"///foo.txt" is okay, while "File_URI_scheme"//foo.txt" is not, although some interpreters manage to handle the latter).

## Meaning of slash character

The slash character (/), depending on its position, is used in different meanings in a file URL.

• The // after the File_URI_scheme" is part of the general syntax of hierarchical URLs. (The double slash // should always appear in a file URL according to the specification, but in practice many Web browsers allow you to omit it)
• The single slash between host and path is part of the syntax of file URLs.
• And the slashes in path separate directory names in a hierarchical system of directories and subdirectories. In this usage, the slash is a general, system-independent way of separating the parts, and in a particular host system it might be used as such in a pathname (as in Unix systems).

## Examples

### Unix

Here are two Unix examples pointing to the same /etc/fstab File_URI_scheme"

File_URI_scheme"//localhost/etc/fstab
File_URI_scheme"///etc/fstab


### Windows

Here are some examples which may be accepted by some applications on Windows systems, referring to the same, local file c:\WINDOWS\clock.avi

File_URI_scheme"//localhost/c|/WINDOWS/clock.avi
File_URI_scheme"///c|/WINDOWS/clock.avi
File_URI_scheme"//localhost/c:/WINDOWS/clock.avi


Here is the correct URI as understood by the Windows Shell API:

File_URI_scheme"///c:/WINDOWS/clock.avi


For a local file, the last is the most obvious and human-readable, and also the canonical one understood by the operating system [1].

## Things to consider

### Windows

On Microsoft Windows systems, the normal colon (:) after a device letter has sometimes been replaced by a vertical bar (|) in file URLs. This reflected the original URL syntax, which made the colon a reserved character in a path part.

Since Internet Explorer 4, file URIs have been standardized on Windows, and should follow the following scheme. This applies to all applications which use URLMON or SHLWAPI for parsing, fetching or binding to URIs. To convert a path to a URL, use UrlCreateFromPath, and to convert a URL to a path, use PathCreateFromUrl. [2]

To access a file "the file.txt", the following might be used.

For a network location:

File_URI_scheme"//hostname/path/to/the%20file.txt


Or for a local file, the hostname is omitted, but the slash is not (note the third slash):

File_URI_scheme"///c:/path/to/the%20file.txt


This is not the same as providing the string "localhost" or the dot "." in place of the hostname. The string "localhost" will attempt to access the file as \\localhost\c:\path\to\the file.txt, which will not work since the colon is not allowed in a share name. The dot "." results in the string being passed as \\.\c:\path\to\the file.txt, which will work for local files, but not shares on the local system. For example File_URI_scheme"//./sharename/path/to/the%20file.txt will not work, because it will result in sharename being interpreted as part of the DOSDEVICES namespace, not as a network share.

The following outline roughly describes the requirements.

• The colon should be used, and should not be replaced with a vertical bar.
• Forward slashes should be used to delimit paths. note that while DOS requires backslashes, the Win32 API will accept either a forward or back slash.
• Characters such as the hash (#) or question mark (?) which are part of the filename should be percent-encoded.
• Characters which are not allowed in URIs, but which are allowed in filenames, must also be percent-encoded. For example, any of "{}^ " and all control characters. In the example above, the space in the filename is encoded as %20.
• Characters which are allowed in both URIs and filenames must NOT be percent-encoded.
• Must not use legacy ACP encodings. (ACP code pages are specified by DOS CHCP or Windows Control Panel language setting.)
• Unicode characters outside of the ASCII range must be UTF-8 encoded, and those UTF-8 encodings must be percent-encoded.

Use the provided functions if you can. If you must create a URL programmatically and you cannot access SHLWAPI.dll (for example from script, or another programming environment where the equivalent functions are not available) the above outline will help.

### Legacy URLs

To aid the installed base of legacy applications, the PathCreateFromUrl recognizes certain URLs which do not meet these criteria, and treats them uniformly. These are called "legacy" file URLs as opposed to "healthy" file URLs. [3]

In the past, a variety of other applications have used other systems. Some added an additional two slashes. For example, \\remotehost\share\dir\file.txt, would become File_URI_scheme"////remotehost/share/dir/file.txt instead of the "healthy" File_URI_scheme"//remotehost/share/dir/file.txt.

### Web pages

File URLs are rarely used in Web pages on the Internet, since they make the assumption that such a file exists on the client's computer. The host specifier can be used to retrieve a file from an external source, although no specific file-retrieval protocol is specified; and using it should result in a message that informs the user that no mechanism to access that machine is available.

### Browser behaviour

#### Common browsers

##### Microsoft Internet Explorer

no extra tools needed

##### Mozilla Firefox

within directory c:\Users\<<USERNAME>>\AppData\Roaming\Mozilla\Firefox\Profiles\<<***>>.default\ create file user.js which contains the following:

user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");
`

##### Opera

click right – "save..."

#### Other browsers

The original Web browser, WorldWideWeb, provided editing of resources in file space [4]. Amaya still has this ability.

## Popular search requests

File URI scheme is an object of interest for many people. For example, the people often search for File URI scheme website, File URI scheme blog, File URI scheme online, File URI scheme information, File URI scheme photo, File URI scheme picture, File URI scheme video, File URI scheme movie, File URI scheme history, File URI scheme news, File URI scheme facts, File URI scheme description, File URI scheme detailed info, File URI scheme features, File URI scheme manual, File URI scheme instructions, File URI scheme comparison, File URI scheme book, File URI scheme story, File URI scheme article, File URI scheme review, File URI scheme feedbacks, File URI scheme selection, File URI scheme data, File URI scheme address, File URI scheme phone number, download File URI scheme, File URI scheme reference, File URI scheme wikipedia, File URI scheme facebook, File URI scheme twitter, File URI scheme 2013, File URI scheme 2014, File URI scheme in the United States, File URI scheme USA, File URI scheme US, File URI scheme in United Kingdom, File URI scheme UK, File URI scheme in Canada, File URI scheme in Australia, etc.

File URI scheme is also an object of commercial interest. For example, many people are interested in File URI scheme offers, File URI scheme buy, File URI scheme sell, File URI scheme sale, File URI scheme discounts, discounted File URI scheme, File URI scheme coupon, File URI scheme promo code, File URI scheme order, to order File URI scheme online, to buy File URI scheme, how much for File URI scheme, File URI scheme price, File URI scheme cost, File URI scheme price list, File URI scheme tariffs, File URI scheme rates, File URI scheme prices, File URI scheme delivery, File URI scheme store, File URI scheme online store, File URI scheme online shop, inexpensive File URI scheme, cheap File URI scheme, File URI scheme for free, free File URI scheme, used File URI scheme, and so on.

Information source: wikipedia.org

Do you want to know more? Look at the full version of the File URI scheme article.

File URI scheme Sale - Buy now!
 Super Offers
 Super Offers
 Custom Logo Design \$149  ▪  Web Programming  ▪  ID Card Printing  ▪  Best Web Hosting  ▪  eCommerce Software  ▪  Add Your Link © 1996-2013 MAGIA Internet Studio ▪ About ▪ Portfolio ▪ Photo on Demand ▪ Hosting ▪ Advertise ▪ Sitemap ▪ Privacy ▪ Maria Online