Storage constructor

Storage(
  1. StorageQuery storageQuery
)

Provides access to file storage.

Pass storageQuery to set the path and adapter on the remote storage side.

Specify the local path in upload and upload the file. It is also possible to upload with real data instead of paths by using uploadWithBytes.

Uploaded files can be downloaded at download. In that case, cache the file by specifying the local cache path.

You can delete files on the remote side with delete.

ファイルストレージへのアクセス機能を提供します。

storageQueryを渡してリモートストレージ側のパスやアダプターの設定を行ってください。

uploadでローカルのパスを指定しファイルのアップロードを行います。 uploadWithBytesでパスではなく実データでアップロードすることも可能です。

アップロード済みのファイルをdownloadにてダウンロードすることが可能です。 その場合、ローカルのキャッシュのパスを指定してファイルをキャッシュします。

deleteでリモート側のファイルを削除することが可能です。

Implementation

Storage(this.storageQuery);