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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Carsten
Forum Newbie
Posts: 5
Joined: Wed Nov 09, 2005 6:46 am

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

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Output some (onload) Javascript into the iframe's php target?
Post Reply