--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/6b42b17a-545e-4963-b837-faedb73560b7%40googlegroups.com.
Hi Mike,I tried your first suggestion, however the files produced by Firebase Storage is inaccessible by GAE or gsutil. Thus, I cannot use it to call get_serving_url(). I tried accessing the files using gsutil, I got errors like:AccessDeniedException: Access denied. Please ensure you have OWNER permission on gs://<my-firebase-storage-bucket>/myobject.Setting the bucket permissions as owner doesn't help. Setting the object permissions is not allowed (it gives the same error message that I'm not the owner).How do I set the firebase-storage-uploaded files to be accessible from GAE or gsutil?FYI, this docs explains how to do it the other way around (you have files produced by GAE and want to be accessed by firebase):
gsutil -m acl ch -r -u firebase-storage@system.gserviceaccount.com:O gs://<your-firebase-storage-bucket>
--On Fri, Jan 20, 2017 at 9:41 AM, 'Mike McDonald' via Firebase Google Group <firebase-talk@googlegroups.com> wrote:Felix,--Because Firebase Storage shares the same bucket at GAE, you don't have to move anything, you can simply use getServingURL() in GAE and things will Just Work™. You're still setting up a thin GAE server with one endpoint to generate those thumbnails, but it's hard to beat the price (free ;).Eventually, having a built in image resizing API is something we're considering, but it's a decent bit of infrastructure work to create, and with the ease of use on the above, it's hard to justify.Otherwise, Cloudinary or Imgix are good APIs to do this (see SO post on how).Thanks,--Mike
On Sunday, January 15, 2017 at 4:45:13 PM UTC-8, Felix Halim wrote:Usually when users upload photos using their phones to firebase storage, it's 3MB sized and I want to serve it in 200x300 size (which is around few hundreds KB).Is there a way (or there is a plan to support) to serve firebase images with multiple sizes stored in:In GAE, if the image is stored in blobstore, there is get_serving_url that allows serving the image in any size. It would be a pain to move the images to GAE just to get this functionality.Felix Halim
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/6b42b17a-545e-4963-b837-faedb73560b7%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CAAbwPor0wLdN2JxP7jHGnknkZ5OMo-fBxkhXoJUDyYqzrmnGGA%40mail.gmail.com.
Felix,If you receive Access denied, then you must not have the appropriate permissions. Most likely, you set your login account to owner, while your script would obviously be using a different service account credential, and you'd need to set that one to get access?☼, Kato
On Sun, Jan 22, 2017 at 8:59 PM, Felix Halim <felix...@gmail.com> wrote:
Hi Mike,I tried your first suggestion, however the files produced by Firebase Storage is inaccessible by GAE or gsutil. Thus, I cannot use it to call get_serving_url(). I tried accessing the files using gsutil, I got errors like:AccessDeniedException: Access denied. Please ensure you have OWNER permission on gs://<my-firebase-storage-bucket>/myobject.Setting the bucket permissions as owner doesn't help. Setting the object permissions is not allowed (it gives the same error message that I'm not the owner).How do I set the firebase-storage-uploaded files to be accessible from GAE or gsutil?FYI, this docs explains how to do it the other way around (you have files produced by GAE and want to be accessed by firebase):
gsutil -m acl ch -r -u firebase...@system.gserviceaccount.com:O gs://<your-firebase-storage-bucket>
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/CADypTEZcCDokaHy_AAxVxZH1g1pdvenwF5im2K46wdpJq839bg%40mail.gmail.com.
Hi Kato,The file is created via firebase using:Who is the owner of that file?
I can't even view the metadata in the storage browser due to permission error.