Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.3   8.4   8.5   9.0   9.1   9.2   9.3   9.4   9.5   10.0    Statistic  


Converts a file path to a local file URL.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Path 5.0 Yes Yes Yes Yes Yes
MBS( "Path.FilePathToFileURL"; Path )   More


Parameter Description Example value
Path The absolute file path to convert to URL. "/Users/cs/Desktop/test.html"


Returns URL or error.


Converts a file path to a local file URL.


Converts a path to a file URL

/* shows: file://localhost/Users/cs/Desktop/test.html */
MBS( "Path.FilePathToFileURL"; "/Users/cs/Desktop/test.html" )

Converts a Windows path to file URL:

MBS( "Path.FilePathToFileURL"; "C:\Users\Christian\Desktop\test.html" )

See also

Example Databases

Blog Entries

Created 30th January 2015, last changed 30th January 2015

Path.FileMakerPathToNativePath   -   Path.FileURLToFilePath

Feedback: Report problem or ask question.

MBS Xojo blog