Send a local picture file to webserver

Get help using Construct 2

Post » Sat Jul 13, 2013 8:21 am

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
B
8
S
2
Posts: 24
Reputation: 694

Post » Sat Jul 13, 2013 9:58 pm

B
98
S
35
G
29
Posts: 3,139
Reputation: 28,396

Post » Sun Jul 14, 2013 12:01 am

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)

Xam2013-07-15 13:51:39
B
8
S
2
Posts: 24
Reputation: 694


Return to How do I....?

Who is online

Users browsing this forum: NN81 and 25 guests