HTML/JS Here: http://pastebin.com/JrtfeAtw PHP Here: http://pastebin.com/EcRHCwmY Based on Ajax F1's tutorial here: www.ajaxf1.com/tutorial/ajax-file-upload-tutorial.html
HTML / JS这里:http://pastebin.com/JrtfeAtw PHP这里:http://pastebin.com/EcRHCwmY基于Ajax F1的教程:www.ajaxf1.com/tutorial/ajax-file-upload-tutorial.html
Anyway, my problem. In Chrome, this works fine. However, in Firefox, it will upload the first file no problem, and begin uploading the second one. I've traced it in Firebug and it definitely calls form.submit() on the correct form, and the form has the correct fields in it, but for some reason my form never gets submitted.
无论如何,我的问题。在Chrome中,这很好用。但是,在Firefox中,它会上传第一个文件没问题,并开始上传第二个文件。我在Firebug中跟踪它,它肯定在正确的表单上调用form.submit(),并且表单中包含正确的字段,但由于某种原因,我的表单永远不会被提交。
Is this because I'm submitting the same form twice? And if so, is there a workaround that anyone knows of?
这是因为我两次提交相同的表格吗?如果是这样,有没有人知道的解决方法?
Cheers!
干杯!
1 个解决方案
#1
0
I have no explanation for this, however, setting the source of the iFrame to about:blank between each image upload fixed the issue.
我没有解释这一点,但是,将iFrame的来源设置为:每个图像上传之间的空白解决了问题。
#1
0
I have no explanation for this, however, setting the source of the iFrame to about:blank between each image upload fixed the issue.
我没有解释这一点,但是,将iFrame的来源设置为:每个图像上传之间的空白解决了问题。