SessionFileStorage
Note
File storage that stores the content as base 64 on the session together with information regarding content type, size and timestamp when the storage was created. TTL for the files is set to same as the global TTL. Is used as an implementation of the Files module.
Warning
Since files are stored in the session, this could lead to potential issues with larger files.
It is possible to extract the files from an external API. The return values looks as follows:
{
"id": "096d13f1-e200-429e-9dcb-76c501fbe41c",
"content_type": "json",
"size": 54389549,
"created": 1733054400000,
"modified": 1733054402000,
"content": "Wfd349..."
}
Properties
- id - Your session ID
- content_type - The provided content type
- size - The size of the combined content
- created - When the storage was created
- modified - When the session was modified. Null if not modified
- content - Your base64 encoded content