Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File saving failed using batch #32

Open
miup opened this issue Apr 9, 2018 · 2 comments
Open

File saving failed using batch #32

miup opened this issue Apr 9, 2018 · 2 comments

Comments

@miup
Copy link
Contributor

miup commented Apr 9, 2018

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 9.2
  • Pring version: 0.7.8

[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:

class Image: Object {
    dynamic var file: File?
}

let imageModel = Firebase.Image()
imageModel.file = File(data: UIImageJPEGRepresentation(image, 1.0)!)
let batch = Firestore.firestore().batch()
batch.add(.save, object: imageModel)
batch.commit { error in
    print(error) // printed nil, but file is not exist in storage
}
@1amageek 1amageek reopened this Jun 15, 2018
@kogetaro
Copy link

I have also encountered the same problem.
・Xcode version: 10.0
・Swift version: 4.2
・Pring version: 0.13.6

@brightsider
Copy link
Contributor

Has same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants