fluttercommunity / fluttercommunity/flutter_downloader

[Android] Files in MediaStore are broken

Open
#482 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
940
Forks
561
Avg merge
1h 18m
Merged PRs (30d)
1

Description

Hi,

`D/DownloadWorker( 7813): insert description= _display_name=ori_⟶ [Shop] Checkout Delivery.png datetaken=1623919890821 mime_type=image/png _data=/storage/emulated/0/Android/data/com.myapp/files/ori_⟶ [Shop] Checkout Delivery.png title=ori_⟶ [Shop] Checkout Delivery.png date_added=1623919890821 to MediaStore`
This result in a broken image in the MediaStore with metadata showing 0bytes.
The image can be correctly read/open from the intent (Notification).

`ImageGallerySaver.saveFile('${task.savedDir}${Platform.pathSeparator}${task.filename}');
`
This other plugin add the image to MediaStore correctly, using the same file, but there is no way to tel flutter_downloader not too...
Removing it is not an option, it will break the Notification.

Android : 11
flutter_downloader : 1.6.1
Flutter : 2.2.2

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.