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: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

WebDownloadDelegate.expectedContentLength

Returns the expected content length.

Component Version macOS Windows Linux Server iOS SDK
WebDownloadDelegate 2.7 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "WebDownloadDelegate.expectedContentLength" )

Parameters

none

Result

Returns the expected content length, or -1 if the length can't be determined.

Description

Returns the expected content length.
Some protocol implementations report the content length as part of the response, but not all protocols guarantee to deliver that amount of data. Clients should be prepared to deal with more or less data.

See also

Example Databases

This function is free to use.

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


WebDownloadDelegate.URL - WebDownloadDelegate.suggestedFilename

💬 Ask a question or report a problem