從PHAsset獲取文件名有兩種方式
1.asset.value(forKey: "filename")
2.由PHImageManager獲取
PHImageManager.default().requestImageData(for: data, options: option, resultHandler: { (imageData, uti, orientation, infos)in
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? varfileName =""
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ifleturl = infos?["PHImageFileURLKey"]as?URL{
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? fileName = url.lastPathComponent
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? }
})