Hi.
I wanted to have my flash-application import images from the users harddisk. If I’m right, the only way to do so is by first uploading them to the Server with the FileReference class, and once that is done, import the images into flash. Right?
So far so good. However, I’m worried about what happens to the files once online. After all, they’re not supposed to be there forever. I thought about having the flash-application tell the PHP-script to immediately delete the file, once flash has imported it. However, after giving it more thought, this doesn’t seem like a solution, since the user can close the browser or the tab with the flash app in it or whatever, with the result that the image would get uploaded, but flash wouldn’t be there anymore to tell PHP to delete it once it’s not needed.
So I guess the only way to do this is by adding a conjob or crontab or something, that checks maybe once a week or so which files have been uploaded, and then deletes all files that are older than a few days. I’ve never created a cronjob so far though, and my first attempts didn’t work. I had a closer look at the server which is an apache one, and so some tutorials tell me to install the web browser Lynx, for some reason that wasn’t explained. And now I’m confused.
How is this handled normally?
Thanks for any help.