How do I send a picture to php

Get help using Construct 2

Post » Tue Oct 18, 2016 11:46 am

Hi guys, sorry for the terrible english.

I'm developing my second game, and i need to send an image to a php file.
Here is what i'm trying to do:

Ajax POST a Filechooser.Asjson to php controller.

Php is getting the Json and decoding but i can't understand the data receveid.

If you guys can help me, i aprecciate. Thanks.
B
3
Posts: 2
Reputation: 179

Post » Tue Oct 18, 2016 6:49 pm

Hello,
send your image to server and then save the url in database with PHP ;)
B
17
S
10
G
19
Posts: 140
Reputation: 11,457

Post » Tue Oct 18, 2016 7:34 pm

it is possible to upload a image to a server/folder only using c2 FileChooser and Ajax ?
so..without FileReader ,Base64,Database ..custom Js..
just something simple like .. File Upload
..and some example would be great...
B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

Post » Tue Oct 18, 2016 10:35 pm

Thanks guys, just did it with
FileReader and Pode's Inject Image: viewtopic.php?t=68521&start=0
B
3
Posts: 2
Reputation: 179


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests