Skip to content

New extension: File Upload Download#2000

Open
github-actions[bot] wants to merge 1 commit intomainfrom
extension/moolbie/1998
Open

New extension: File Upload Download#2000
github-actions[bot] wants to merge 1 commit intomainfrom
extension/moolbie/1998

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Description

This is a GDevelop extension provides file upload/download capabilities and texture pack management for games.


Core Features:

  1. Text Files

    • Upload text files to variables
    • Download text content as file
  2. ZIP Files

    • Upload ZIP files and decompress into variable structures (base64 or text)
    • Download ZIP files
    • Apply texture packs from ZIP files using an index.json manifest
  3. Images

    • Download game resources as PNG files
    • Upload images to replace existing resources
    • Both support resource picker and string expression inputs
  4. Texture Packs

    • Load texture packs from ZIP archives
    • Uses index.json to map resource names to file paths
    • Expected structure:
      JSON
      {
         "pack-data": {
            "name": "Texture pack",
            "pack-version": "1.0.0",
            "game-version": "1.0.0"
         }, // pack-data is optional.
         "textures": {
            "<Resource-name>": "<new/file/directory/relative/to/index>"
         }
      }
      

      Texture packs only support images, not audios yet.

Implementation Details:

  • Uses JSZip library (bundled in initialization code)
  • Async operations for file handling
  • Creates temporary file input elements for uploads
  • Converts images to/from base64 for storage and manipulation
  • PIXI.js texture management for resource replacement
  • Searches up to specified depth for index.json in ZIP structures

Use Cases:

  • Save/load game data
  • User-generated content
  • Modding support through texture packs
  • Export/import configurations
  • Custom skins/themes

The extension enables web-based games to interact with the user's file system in a browser-safe manner.

How to use the extension

add an action like Upload a zipfile Upload image to resource Upload a text file to variable
it pretty much does what it sounds like it will do

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

My project119.zip

Extension file

Files(2).zip


Extension by @moolbie

You can update the extension on this "Pull Request" by commenting the update command: in the comment field, type !update, then drag and drop a zip file with your extension file in the commenting field, like how you initially submitted the extension. It should look like this:

!update [MyExtension.zip](https://github.com/GDevelopApp/GDevelop-extensions/files/12709661/MyExtension.zip)

It can take a few seconds for the file to fully upload and show as the above. Once it is like shown above, click "Comment" and let the bot do the rest!

@github-actions github-actions bot requested a review from a team as a code owner January 17, 2026 09:00
@github-actions github-actions bot added the ✨ New extension A new extension label Jan 17, 2026
@moolbie
Copy link
Copy Markdown
Contributor

moolbie commented Feb 4, 2026

@4ian

@moolbie
Copy link
Copy Markdown
Contributor

moolbie commented Mar 17, 2026

dude are there seriously 0 mods here... extensions dead?

@CreatorADOfficial
Copy link
Copy Markdown

@moolbie hello bro, btw it already exists in gdevelop so they probably don't need it.

@CreatorADOfficial
Copy link
Copy Markdown

@moolbie it's called "upload download text file"

@moolbie
Copy link
Copy Markdown
Contributor

moolbie commented Apr 14, 2026

@moolbie it's called "upload download text file"

no. this upload downloads any file. Images and zipfiles too! not just textfiles

@CreatorADOfficial
Copy link
Copy Markdown

@moolbie it's called "upload download text file"

no. this upload downloads any file. Images and zipfiles too! not just textfiles

Cool!

@CreatorADOfficial
Copy link
Copy Markdown

CreatorADOfficial commented Apr 14, 2026

But i don't think 4ian will respond because he is the founder of gdevelop and he just makes videos and code! Try other contributors, you can tag D8H!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ New extension A new extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants