I'm trying the resize php demo on my server for v2.5.0 Beta 2.

From what I can tell something is uploaded. Everything appears successful on the client and I can see data (bytes) in the server session (like the demo) or save it to a file on the server. That saved output has about the same size as the original image byte-wise.

However, when I try to view the image I save or pull it out of the session like the demo, the image is somehow corrupted and doesn't render at all.

When I save the resized/uploaded image back to my local computer and try and open it in Photoshop, it tells me: "Could not complete your request because the JPEG marker segment length is too short (the file may be truncated or incomplete)."

Is there some common setting or step I'm forgetting with swfupload or my server side scripting that would prevent this apparent corruption?

Is there a way to verify the resized image is OK client side before uploading it?

thanks.