Object representing a file.
string SendBird.FileMessage.PlainUrl |
|
get |
Returns the plain file URL, which does not contain SendBird#getEkey() as a parameter. If the file encryption feature is enabled, you must put SendBird#getEkey() to the request header with {@value StringSet::user_auth_key} as the key. Otherwise, the server will refuse the connection.
Generally, it is recommended to use getUrl() to fetch resources, but if you want to cache the file with URL string as a key while enabled the file encryption feature, it is recommended to use this method instead. This is because the URL returned by this method does not embed SendBird#getEkey(), making it a less changing cache key.
- Returns
- Plain file URL without a parameter.
- See also
- SendBird::getEkey()
-
#getUrl()
- Since
- 3.0.18
string? SendBird.FileMessage.Url |
|
get |
Returns the file URL. If the file encryption feature is enabled, the returned url will contain encryption key as a parameter.
If you enabled the file encryption feature and want to cache the file with URL string as a key, it is recommended to use PlainUrl() instead. This is because the URL returned by this method embeds SendBird#Ekey, which changes at every login, leading to a frequent cache miss.
- Returns
- The URL.
- See also
- #getPlainUrl()