I've gone through the upload image tutorial and it's been very helpful, but I am stuck on a modification of my own.
Once my user uploads an image, I want to modify the jpg and I change it's name. I am also storing info about this image, so I created a record in a mysql table. My PHP upload script renames the jpg file to the auto increment key number and stores additional info in the record.
In Flash, I've used a listener object when I initiate the upload (just as the tutorial describes). I would like to send the new name of the jpg file created in the PHP upload script back down to flash and then download the jpg under the new file name.
In the PHP upload script file, I suppose I can use something like:
echo "filename=$newfilename";
But how do I tell the listener object to return this variable back to Flash? Or is this done some other way? Please help?
Thanks, Adam