服务器响应200后,Fine Uploader失败。

时间:2016-08-30 20:07:04

标签: php file-upload

我有通过composer安装到我的debian灯服务器主站点目录的上传器。页面使用文件选择和我的图像文件的缩略图呈现按预期呈现。它通过了许多步骤,但在尝试获取服务器的目录内容时似乎失败了。我在下面包含了日志文件。我也试图在我的OS X安装上运行它,但在尝试访问该文件夹时失败了403 forbidden。我尝试使用Fine Uploader示例中提供的默认示例代码。

这是日志:

[Fine Uploader 5.11.7] Parsing template
util.js:236[Fine Uploader 5.11.7] Template parsing complete
util.js:236[Fine Uploader 5.11.7] Attempting to update thumbnail based on server response.
util.js:236[Fine Uploader 5.11.7] Attempting to update thumbnail based on server response.
util.js:236[Fine Uploader 5.11.7] Rendering template in DOM.
util.js:236[Fine Uploader 5.11.7] Template rendering complete
util.js:236 [Fine Uploader 5.11.7] Received 1 files.
util.js:236 [Fine Uploader 5.11.7] Attempting to validate image.
util.js:236 [Fine Uploader 5.11.7] Generating new thumbnail for 0
util.js:236 [Fine Uploader 5.11.7] Attempting to draw client-side image preview.
util.js:236 [Fine Uploader 5.11.7] Attempting to determine if IMG_2392.jpg can be rendered in this browser
util.js:236 [Fine Uploader 5.11.7] First pass: check type attribute of blob object.
util.js:236 [Fine Uploader 5.11.7] Second pass: check for magic bytes in file header.
util.js:236 [Fine Uploader 5.11.7] 'IMG_2392.jpg' is  able to be rendered in this browser
util.js:236 [Fine Uploader 5.11.7] Moving forward with EXIF header parsing for 'IMG_2392.jpg'
util.js:236 [Fine Uploader 5.11.7] EXIF Byte order is big endian
util.js:236 [Fine Uploader 5.11.7] Found 9 APP1 directory entries
util.js:236 [Fine Uploader 5.11.7] Successfully parsed some EXIF tags
util.js:236 [Fine Uploader 5.11.7] Sending simple upload request for 0
util.js:236 [Fine Uploader 5.11.7] xhr - server response received for 0
util.js:236 [Fine Uploader 5.11.7] responseText = <!DOCTYPE HTML PUBLIC  "-//W3C//DTD HTML 3.2 Final//EN">
<html>
 <head>
  <title>Index of /server/uploads</title>
 </head>
 <body>
<h1>Index of /server/uploads</h1>
  <table>
   <tr><th valign="top"><img src="/icons/blank.gif" alt="[ICO]"></th>  

<th><a href="?C=N;O=D">Name</a></th><th><a href="?C=M;O=A">Last   modified</a></th><th><a href="?C=S;O=A">Size</a></th><th><a href="?  C=D;O=A">Description</a></th></tr>
   <tr><th colspan="5"><hr></th></tr>
<tr><td valign="top"><img src="/icons/back.gif" alt="[PARENTDIR]"></td><td><a href="/server/">Parent Directory</a></td><td>&nbsp;</td><td align="right">  - </td><td>&nbsp;</td></tr>
   <tr><th colspan="5"><hr></th></tr>
</table>
<address>Apache/2.4.10 (Debian) Server at 192.168.1.188 Port 80</address>
</body></html>

util.js:236 [Fine Uploader 5.11.7] Received response status 200 with body: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
 <head>
  <title>Index of /server/uploads</title>
 </head>
 <body>
<h1>Index of /server/uploads</h1>
  <table>
   <tr><th valign="top"><img src="/icons/blank.gif" alt="[ICO]"></th><th><a href="?C=N;O=D">Name</a></th><th><a href="?C=M;O=A">Last modified</a></th><th><a href="?C=S;O=A">Size</a></th><th><a href="?C=D;O=A">Description</a></th></tr>
   <tr><th colspan="5"><hr></th></tr>
<tr><td valign="top"><img src="/icons/back.gif" alt="[PARENTDIR]"></td><td><a href="/server/">Parent Directory</a></td><td>&nbsp;</td><td align="right">  - </td><td>&nbsp;</td></tr>
   <tr><th colspan="5"><hr></th></tr>
</table>
<address>Apache/2.4.10 (Debian) Server at 192.168.1.188 Port 80</address>
</body></html>

util.js:241 [Fine Uploader 5.11.7] Error when attempting to parse xhr response text (Unexpected token < in JSON at position 0)qq.log @ util.js:241log @ uploader.basic.api.js:282(anonymous function) @ util.js:691parseResponse @ traditional.xhr.upload.handler.js:106onUploadOrChunkComplete @ traditional.xhr.upload.handler.js:89xhr.onreadystatechange @ traditional.xhr.upload.handler.js:50
util.js:236 [Fine Uploader 5.11.7] Simple upload request failed for 0

0 个答案:

没有答案