How to upload images to web server?

Get help using Construct 2

Post » Mon Jan 09, 2017 9:29 am

Hi there, I'm trying to build an application that is capable to let user choose an image from their mobile device and upload it to my web server. I had covered the image picking, but how could I upload the image to web server? Is it even possible to do so??
B
48
S
20
G
6
Posts: 72
Reputation: 6,472

Post » Mon Jan 09, 2017 4:28 pm

The FileChooser should be your tool of choice. I am not sure how it works on mobile though.
how-do-i-use-file-chooser_t109151
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,418
Reputation: 4,830

Post » Thu Jan 12, 2017 3:59 pm

@johnkx I sent you a link to an old tutorial I had made some time ago I hope it helps point you in the right direction at least a bit.
[edit] Construct 2 limits some of its functions if you don't have a full license please be aware of this. Check the list of available features for all 3 options of license (free/personal/business)
Freefall Bird
B
47
S
9
G
5
Posts: 280
Reputation: 5,796

Post » Fri Jan 13, 2017 7:49 am

@Ragevortex I had tried your php script, it works just fine, thanks! By the way, can your script save .png files to server too?
B
48
S
20
G
6
Posts: 72
Reputation: 6,472

Post » Fri Jan 13, 2017 1:12 pm

@johnkx it could it just takes quite a lot storage so for my project I chose to use jpg as I was expecting quite a lot of images and I didn't really need them to be too high quality.
Freefall Bird
B
47
S
9
G
5
Posts: 280
Reputation: 5,796


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 35 guests