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.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Returns a suggested filename.

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




Returns a suggested filename.


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.

MBS Xojo Plugins