You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to save Images using WriteBatch class.
Saving to Firestore is succeeded, but File is not saved in storage.
Relevant Code:
classImage:Object{dynamicvarfile:File?}letimageModel=Firebase.Image()
imageModel.file =File(data:UIImageJPEGRepresentation(image, 1.0)!)letbatch=Firestore.firestore().batch()
batch.add(.save, object: imageModel)
batch.commit{ error inprint(error)// printed nil, but file is not exist in storage}
The text was updated successfully, but these errors were encountered:
[REQUIRED] Step 1: Describe your environment
[REQUIRED] Step 3: Describe the problem
I tried to save Images using WriteBatch class.
Saving to Firestore is succeeded, but File is not saved in storage.
Relevant Code:
The text was updated successfully, but these errors were encountered: