Create File on Appwrite (Kotlin)

    0

    2

    Khalid Khan

    Appwrite companion cookbook

    This code creates a new file in the specified bucket using the specified file id and file name in appwrite storage.

    Shortcut: appwrite.storage.createfile

    val response = storage.createFile(
        bucketId = "[BUCKET_ID]",
        fileId = "[FILE_ID]",
        file = File("filename"),
      )
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • 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.