Skip to content

Extension update: UploadDownloadTextFile #1937

@moolbie

Description

@moolbie

Changes

  1. Changes the variable from the deprecated scene variable to the new universal variable.
  2. Adds following ID's with the uploads, so if you have multiple things you could upload — like a datapack and a world save, we can keep those separate using an id.
  3. Adds JSON file support. This adds a dropdown to the download/upload actions, asking if u want it as plain text or json.

How to use the new features

  1. Download - Call the download action with a filename, file-type and your text content
  2. Upload - Call the upload action with a variable and unique ID
  3. Wait - Use the upload finished condition to check when it's done
  4. Read - Access your variable to get the uploaded file content

Checklist

  • I've followed all of the best practices.
  • I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
  • I am aware that the extension may be updated by anyone, and do not need my explicit consent to do so.

Example file

UploadDownloadTextFileExample.zip

Extension file

Files.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔄 Extension updateAn update for an existing extension🧪 Experimental extensionAn extension submission to be merged with a lightweight review.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions