我有以下代码用于多个图片上传:
<SCRIPT> function render_uploadify() { $("#body_partition_middle").html('<DIV class = "photo_upload_w"><DIV class = "photo_upload" id = "photo_upload"></DIV><BR><INPUT id = "photo_upload_input" name = "photo_upload_input" type = "file"/><a href="javascript:$(\'#photo_upload_input\').uploadifyUpload();">Upload Files</a></DIV>'); $("#photo_upload_input").uploadify({ "uploader" : "/knock/js/uploadify/uploadify.swf","script" : "/knock/dummy/upload.html","cancelImg" : "/knock/js/uploadify/cancel.png","folder" : "/knock/js/uploads","multi" : true,"queueID" : "photo_upload","auto" : true }); } </SCRIPT>
上面的函数被称为:
<A href = "javascript:render_uploadify()">Upload</A>
好吧,GUI是渲染购买uploadify插件,但当我尝试上传文件时,它最终导致IO错误.
我在后端收到的请求是这样的:
POST /knock/dummy/upload.html HTTP/1.1 Host: 192.168.1.2:8888 User-Agent: Shockwave Flash Connection: Keep-Alive Cache-Control: no-cache Accept: text/* Content-Length: 2492 Content-Type: multipart/form-data; boundary=----------------------------368d2437ab8d
但是没有HTTP请求消息体.
有人可以告诉我,我在这里做错了什么!!