Merge pull request #8 from qingxistudio/master

Fix: use sub path /Document/photo_gallery to save file
This commit is contained in:
Wenqi Li 2021-01-09 14:53:08 +08:00 committed by GitHub
commit d5f911e163
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -409,7 +409,7 @@ public class SwiftPhotoGalleryPlugin: NSObject, FlutterPlugin {
let tempFolder = paths[0].appendingPathComponent("photo_gallery")
try! FileManager.default.createDirectory(at: tempFolder, withIntermediateDirectories: true, attributes: nil)
return paths[0].appendingPathComponent(mediumId+ext)
return tempFolder.appendingPathComponent(mediumId+ext)
}
private func toSwiftMediumType(value: String) -> PHAssetMediaType? {