Upload and read in the same time

Hello there,

I have an application that uploads a file(picture for ex). This file is converted/resized by php: The idea is the following
-the just resized file is copied as “yy/mm/dd/hh/mm/ss/ms_filename.ext”. The just copied file has a unique name with a precision of miliseconds. I need to read this value(not simulate a similar function in flash), because it will differentiate because of server request delay.

How can i read the php generated filename with the FileReference.upload method or similar ?

Any ideas?
Thank You in advance.