I have an upload function on a page that uploads any attached file.
Below the attachment button, i have a list of uploaded files that fails to refresh and display the latest attached file.
When a small file is added, by the time my refresh function kicks in, it has already uploaded, and so my page refreshes and displays the upload.
problem is, whn i upload a larger fil开发者_开发问答e, the refresh kicks in BEFORE the file is uploaded, so no new file is displayed.
Is there a way to wait for the upload and then update the list?
Normally you will post the form with the file to the server, and the server will respond with the updated page when the upload is complete.
If you use a different way of uploading files, you have to use whatever method that solution provides for signalling when the upload is complete. Unless you are using a component (ActiveX/Java/Silverlgith) to do the upload, there is still a form somewhere that is posted to the server, and the server still returns a response when the upload is done.
精彩评论