How do I remember my choice with File Chooser?

Get help using Construct 2

Post » Mon Jul 03, 2017 10:17 am

Hi, when you choose a file you are given a blob URL that is only temporary. It doesn't relate to the file nor to it's path. When you close the browser, this URL becomes obsolete and you can't reload the file you chose before using this URL.
So, how can you "remember" the file you chose? Is there any way to store it (I know you can store text files as strings, but what happens if it is an image)?
B
21
S
7
G
1
Posts: 164
Reputation: 1,910

Post » Wed Jul 05, 2017 3:27 pm

maybe store the file path in Local Storage?
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 Jul 05, 2017 11:12 pm

@gumshoe2029 yeah the problem is you don't know the file path, the only thing that relates to the image is a blob URL that is temporary
B
21
S
7
G
1
Posts: 164
Reputation: 1,910


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 56 guests