Jump to content

Using Input File Upload within Phaser Canvas


Recommended Posts

I'm creating a photo manipulation 'game' using Phaser.  The user needs to upload a file from their device (desktop, iOS, Android) to start.  Searching, I find examples where <input type="file" name="pic" accept="image/*"> transfers the image into the Phaser canvas.  And CanvasInput.js works if you only have a text field.  But is there any way to get file upload (and file save locally, for that matter) type input from within the Phaser canvas?  I want these input fields within the game canvas itself.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...