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: 7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4    Statistic  

Path.FilePathToFileURL

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 )

Parameters

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

Result

Returns URL or error.

Description

Converts a file path to a local file URL.

Examples

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" )

Example Databases

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


Path.FileMakerPathToNativePath   -   Path.FileURLToFilePath

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins