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
20
S
6
Posts: 143
Reputation: 1,666

Post » Wed Jul 05, 2017 3:27 pm

maybe store the file path in Local Storage?
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"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,415
Reputation: 4,824

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
20
S
6
Posts: 143
Reputation: 1,666


Return to How do I....?

Who is online

Users browsing this forum: ajcoppersmith, blue visionary and 4 guests