I am trying to upload an image, then load a thumbnail back in. So far I have an uploader that posts to a PHP script, and a PHP script that resizes the image. The php script resizes the image, then stores it as X.jpg, where X is the next free id in the data base.
What I need to know is, how to I get X? Is there a way to get the server’s responses, maybe as a property of the event passed to the oncomplete event? Do I have to query an XML file after my upload, and check for a race condition, and code in retries?