ConstSave text or a Blob that was created in JavaScript.
File name with extension, for example notes.txt.
Text or a Blob to save.
OptionalmimeType: stringOptional MIME type. Defaults to the Blob type, or text/plain for text.
saved: true and the saved location if the file was saved, or saved: false if the
user cancels the dialog. An error if fileName is empty.
Save a file that is already on the device, given by its localhost URL.
Only URLs of this server under /_internal/tmp/ are accepted: the URL from a camera,
picker or microphone result. Other URLs are rejected, including file:// URLs, remote URLs
and paths outside that folder.
File name with extension, for example photo.jpg.
The localhost URL of the captured file, for example PickedFile.url.
OptionalmimeType: stringOptional MIME type. Defaults to the one from the file name.
saved: true and the saved location if the file was saved, or saved: false if the
user cancels the dialog. An error if the URL is not a captured file on this server.
Android only for now. Requires the file_saver plugin to be enabled in the app configuration.
The system save dialog opens, so the user chooses where the file goes. There are two ways to provide the file:
PickedFile.url from the camera, a picker or the microphone. The file is read on the
native side and is not sent through the bridge. Use it for large files.If the user cancels the dialog, the call still succeeds with saved: false.
File saver plugin for saving files to the device.