# Upload image, get thumbnail

**URL:** <https://forum.kirupa.com/t/upload-image-get-thumbnail/269409>\
**Category:** flash\
**Created:** [August 27, 2008, 6:57am UTC](https://forum.kirupa.com/t/upload-image-get-thumbnail/269409 "2008-08-27T06:57:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tibberous](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@tibberous](https://forum.kirupa.com/u/tibberous)\
**Post date:** [August 27, 2008, 6:57am UTC](https://forum.kirupa.com/t/upload-image-get-thumbnail/269409/1 "2008-08-27T06:57:00Z")

</div>

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?
