Merge pull request #8 from qingxistudio/master
Fix: use sub path /Document/photo_gallery to save file
This commit is contained in:
commit
d5f911e163
@ -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? {
|
||||
|
Loading…
x
Reference in New Issue
Block a user