Flutter/Firebase Storage - Attempting to upload images from gallery generates unknown error

早过忘川 提交于 2020-01-25 09:23:06

问题


I am building a photo app that uploads photos selected from the devices gallery. The uploads work great in the simulator for iOS13, but when I test on my iPad (iPasOS 13), the uploads always fail with 'Unknown Error' code. The app has permissions to access the gallery (otherwise I wouldn't be able to select images from the gallery before attempting the upload). I am attaching photos of the same build succeeding in iOS simulator and failing on my iPad. Any idea why this could be happening?

I have also confirmed the error code is -13000, which according to the Flutter Firebase repo is 'unknown'

The funny thing is that uploading a similar list of images but taken using the Camera plugin works perfectly on all devices. Could it be an iPad OS thing? Flutter Firebase? Permissions bug? How would I know if the error code is 'unknown'?

来源:https://stackoverflow.com/questions/58630680/flutter-firebase-storage-attempting-to-upload-images-from-gallery-generates-un

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!