2 questions about HTTP file upload
Is it possible to use jquery .ajax() call to post a file to the server and setup a callback function when the upload is done?
Is it possible to get the progress of the uploading process(as G开发者_如何学GoMail) using any possilbe method?
not via ajax, but via hidden iframe check this out Gmail like file upload with jQuery
yes, you'll need custom logic on server side. GMail like file upload progress bar with GWT?
there are plenty of q&a's on stackoverflow on the topic try searching for them
You cant do it natively in all browsers so you have to use a workaround like uploading through a hidden iframe, or using flash (at least for the browsers that dont support it). There are several jquery plugins that implement ajax uploads.
精彩评论