Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5   10.6    Statistic    FMM    Blog  

WebDownloadDelegate.suggestedFilename

Returns a suggested filename.

Component Version macOS Windows Linux Server FileMaker iOS SDK
WebView 2.7 Yes No No No No
MBS( "WebDownloadDelegate.suggestedFilename" )   More

Parameters

none

Result

Returns a suggested filename.

Description

Returns a suggested filename.
The method tries to create a filename using the following, in order:

  • A filename specified using the content disposition header.
  • The last path component of the URL.
  • The host of the URL.

If the host of URL can't be converted to a valid filename, the filename "unknown” is used.

In most cases, this method appends the proper file extension based on the MIME type. This method will always return a valid filename regardless of whether or not the resource is saved to disk.

Example Databases

Created 18th August 2014, last changed 18th August 2014


WebDownloadDelegate.expectedContentLength   -   WebDownloadDelegate.textEncodingName

Feedback: Report problem or ask question.




Links
MBS FileMaker tutorial videos

Start Chat