问题
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