It seems like I have not clearly communicated my problem. I need to send a file (using AJAX) and I need to get the upload progress of the file using the Nginx HttpUploadProgressModule. I need a good solution to this problem. I have tried with the jquery.uploadprogress plugin, but I am finding myself having to rewrite much of it to get it to work in all browsers and to send the file using AJAX.
我所需要的只是代码,它需要在所有主要浏览器(Chrome、Safari、FireFox和IE)中工作.如果我能找到一个能够处理多个文件上传的解决方案,那就更好了.
I am using the jquery.uploadprogress plugin to get the upload progress of a file from the NginxHttpUploadProgressModule. This is inside an iframe for a facebook application. It works in firefox, but it fails in chrome/safari.
当我打开控制台时,我看到了这个.
Uncaught ReferenceError: progressFrame is not defined
jquery.uploadprogress.js:80
你知道我该怎么解决这个问题吗?
我还想在文件完成后使用AJAX发送文件.我将如何实现这一点?
EDIT:
I need this soon and it is important so I am going to put a 100 point bounty on this question. The first person to answer it will receive the 100 points.
EDIT 2:
Jake33 helped me solve the first problem. First person to leave a response with how to send the file with ajax too will receive the 100 points.