Skip to content

Commit ebf362c

Browse files
authored
chore: Add callout for Android storage permissions (#8361)
1 parent 05cd722 commit ebf362c

File tree

1 file changed

+8
-0
lines changed
  • src/pages/[platform]/build-a-backend/storage/download-files

1 file changed

+8
-0
lines changed

src/pages/[platform]/build-a-backend/storage/download-files/index.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,14 @@ const { body, eTag } = await downloadData({
336336

337337
Use the `downloadFile` API to download the file locally on the client.
338338

339+
<Callout>
340+
**Note:** When downloading a file that will overwrite a preexisting file, ensure that your app has the proper write permission to overwrite it. If you are attempting to write to a file that a different app already contributed to the media store, you must request user consent[as described here](https://developer.android.com/training/data-storage/shared/media#update-other-apps-files).
341+
342+
To learn more, refer to Android's developer documentation about [Scoped Storage](https://developer.android.com/training/data-storage#scoped-storage).
343+
344+
Amplify will throw a `StorageException` if it is unable to modify a preexisting file.
345+
</Callout>
346+
339347
<BlockSwitcher>
340348
<Block name="Java">
341349

0 commit comments

Comments
 (0)