Ok, I’ll ask this question in this forum because it does pertain slightly to PHP and nobody is answering me in the Javascript forum.
I am trying to come up with a method to upload a file and when the upload is finished, the filename shows up with a delete button next to it where the file input element was…..this is all without a page refresh, hence the AJAX.
So I know that I need to send my upload command through a hidden IFRAME. But the things is, I do not know how to tell when the file has completed the upload, thus I do not know when to call an AJAX function to display that the file was uploaded…..
So what I am looking for is one of two things:
Either someone can give me a better idea on how to do an AJAX upload with PHP
OR
Someone can give me an idea on how to tell when my upload is finished in the IFRAME (through Javascript perhaps?)