getFileDownload for appwrite



    Khalid Khan

    Appwrite companion cookbook

    This code prints the results of a file download operation that was started in the context of the GlobalScope object. The first parameter is the bucket ID, and the second is the file ID in Appwrite.


    GlobalScope.launch {
      val result = storage.getFileDownload(
        bucketId = "BUCKET_ID",
        fileId = "FILE_ID"
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.