I have a javascript that creates an image and uploads it to imgur.com. I want to then either 1. Automatically save the name of the file locally to a txt file, or 2. Allow a user to choose to save the file by clicking a button. Option 2 preferred. I just don't know how to do it. Help!
That would be fine with me, but the image creator is in JavaScript, and I can't figure out how to get php to do that when the image creator is in javascript.
When the image is created, upload it to your server using an AJAX library like jQuery (I don't know how your code works so I can't tell you how to do that). Once the image is on your server, you can use PHP to do anything with it: *Like read the name file and store it in a .txt *Allow the user to download and save the file An image created in JS cannot be saved to the user's computer unless you dump that image (which is in RAM memory) to your server first.
To reduce server load, I don't even keep the images locally. They all go to imgur.com. I really just want to save the file name!