Page 1 of 1

PHP / AJAX: How to tell if an upload succeeded?

Posted: Wed Oct 18, 2006 7:12 am
by Carsten
Hello!

I have a form with a file upload and a notification box beneath it. When someone uploads an image, it should be shown in the notification box when it's fully uploaded on the server. I don't need a progress bar or anything like that because most of the files are small.

Since real uploads are not possible in AJAX, I've to take an invisible iframe as form target. But how could it be made to change the content of the noticifation box when the file was uploaded?

I hope somebody could help.

Greetings,
Carsten

Posted: Wed Oct 18, 2006 11:49 am
by feyd
Output some (onload) Javascript into the iframe's php target?