Uploading flash in local php server problem, is it me or php server problem?

Ok i have a simple flash project where u upload image then change the frame then export the image with the frame on it. The problem is when i test the movie (ctrl+enter) its working great except the exporting of course because i need the php codes.

But when i upload the flash project (swf and html) to the php server along with the class and php files, i cant upload image for unknown reason, it reads the location of the image file but it wont upload the image and the progress bar is fix to 100% (the progress bar is working on test mode).

So can anyone explain me what might be the problem?