Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › Using DownloadableResource with FireBase Storage

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #19493

    Kool

    Hi All,

    I’m looking to host music files in cloud storage (AWS S3/FireBase Storage) and download them at runtime.

    I noticed that VPlay 2.17 includes things that help to achieve this, e.g. DownloadableResource. Are there any instructions on using FireBase Storage in conjunction with VPlay’s DownloadableResource, along with a secret key to protect them, to download these files at runtime?

    It seems that the DownloadableResource is mostly for direct HTTP GET requests rather than interfacing with services like FireBase Storage/AWS S3 but I might be wrong about that.

    Many thanks!

    #19497

    Günther
    Felgo Team

    Hi Kool,

    you are correct, the DownloadableResource allows to fetch additional resources via HTTP. It allows to protect your files with a secret. Your server, which must also know the same secret, can then check the http-request and only serve the file if allowed. The DownloadableResource is unrelated to the Firebase Cloud Storage, which offers its own API and features.

    Firebase offers its own security mechanism based on Firebase Authentication and Security Rules, which you can set up in the Firebase Backend. You can also configure Firebase Auth + Cloud Storage Security Rules in a way that works for your app.

    Best,
    Günther

    #19500

    Kool

    Considering there’s already a framework in place for FireBase Storage uploading, it’d be great to get downloading in there too as there are numerous use cases.

    For anyone wondering, I cooked up a solution using AWS S3 and the following library: https://github.com/msorvig/qts3

    Many thanks!

    #19525

    Günther
    Felgo Team

    Hi,

    as you can access uploaded files of Firebase Cloud Storage via a regular http url, you should also be able to fetch the file with DownloadableResource if you want to store them locally. Regarding security, you have the option to set up Firebase Auth along with Storage Access Rules to protect your files.

    There is no ready-made example for this use-case, but with a little research on how Firebase Storage and Access Rules work it should be doable.

    Best,
    Günther

Viewing 4 posts - 1 through 4 (of 4 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded