Send a local picture file to webserver

0 favourites
  • 3 posts
From the Asset Store
An educational game for counting pictures. An easy to use template for developers to build larger games
  • Hi Guys,

    For a mobile application I need to upload a picture from the local gallery to my webserver.

    Requesting the local file isn't the issue i can load it (for example) via filereader plugin,but how do i get the file send to my server?

    Tried also "go to URL" to HTML file on webserver which contains a FORM with FILE type POST. Then catch it with PHP, works on desktop. But on mobile devices after selecting a picture it restarts (or reloads) my app. so the POST never happened.

    "open URL in new window" don't even let me select a file when clicking on browse!!

    This issue is bugging me for a couple of day now , so I was wondering if someone could point me in the right direction.

    Cheers, Xam

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thank you, but this seem to only work for uploading NEW pictures which are directly loaded onto the canvas.

    The browsing for a picture and loading this onto the canvas / sprite seems to be the issue now.

    Filereader plugin is not compatible with mobile devices (using phonegap build)

    <img src="smileys/smiley19.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)