How do I upload image from FILE CHOOSER to URL?

Get help using Construct 2

Post » Tue Jun 09, 2015 3:04 am

Hello,

From the attached image (from one of the example project), I would like to know if I can download the image from UserMedia.SnapshotURL to a directory in my server? Example; Download it to www,ABCD,com/snapshot

Cheers,

Image
B
9
S
2
G
1
Posts: 13
Reputation: 669

Post » Tue Jun 09, 2015 3:19 pm

It says "download" on that action. That implies that it is coming FROM the server, not to?
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
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Wed Jun 10, 2015 1:47 am

Very good question..

I should be that way, but when I just RUN LAYOUT from .capx file, there is no server running with it yet I am able to take snap shot and download it to my pc.
So I think that the snapshot is kept in a form of data until we download it into a from of image file. And when you download it, it only goes into your device (Download folder), while I want it to be saved into some specific directory (or into server directory).

It doesn't need to be from UserMedia Snapshot, my intention is change Usermedia object to FILE CHOOSER to select file from my device and upload it to specific URL.

Thanks,
B
9
S
2
G
1
Posts: 13
Reputation: 669

Post » Thu Jun 11, 2015 5:04 pm

When you select "Run layout" from the capx, it creates a local virtual server to run the preview on. I still think you might be using the wrong method, but I have not done file uploads in Construct yet.

Look here for a similar issue:
solved-how-do-i-upload-the-file-chooser-s-local-image_t113402
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
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Mon Jun 15, 2015 2:12 am

@gumshoe2029
Sorry to give unclear questions, and thank you for the link, just what I wanted.

cheers.
B
9
S
2
G
1
Posts: 13
Reputation: 669


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 3 guests