Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

File upload rejected by Server

Support
Anonymous
2012-06-27
2013-03-22

  • Anonymous
    2012-06-27

    The xhtmlrequest generated by PROTO.upload() is being rejected by apache, without any response or error. The request does not show up in the access.log either.
    Could be related to the ContentType, since it's using multipart/form-data without boundary

    using:
    Apache/2.2.15 (Unix)
    DocMGR 1.2.2  (but tested with PROTO.js off DocMGR 1.2.3 as well)

    Headers:
    Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Encoding gzip, deflate
    Accept-Language en-us,en;q=0.5
    Cache-Control no-cache
    Connection keep-alive
    Content-Length 153653
    Content-Type multipart/form-data;charset=UTF-8
    Cookie XXX
    Host XXX
    If-Modified-Since Mon, 26 Jul 1997 05:00:00 GMT
    Referer XXX
    User-Agent Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0.1
    X-File-Name 377292_2251011880923_1417020485_31845748_355497492_n.jpg
    X-File-Size 153653
    X-Requested-With XMLHttpRequest

     

  • Anonymous
    2012-06-27

    Runnign a wireshark over the communication between the server and the client I can confirm that the browswer starts sending the file, but the server closes the connection after receiving the first bytes.

     

  • Anonymous
    2012-06-28

    Fixed.

    It was indeed the weird Content-Type, removing it solved our problems.
    If you have the same problem, comment the following lines:

    * "jslib/proto.js" line 818
    * "apilib/lib/docmgr/file.php" line 28