WebFileUploader test help please!

  1. ‹ Older
  2. 5 months ago

    Jay M

    Feb 13 Pre-Release Testers, Xojo Pro Austin TX
    Edited 5 months ago

    SOLVED!

    As @Kyryl P suggested: In my case it is a known bug in Apache/ModSecurity (not Xojo). It is particularly problematic with large PDF documents.

    Until ModSecurity is patched the answer is to turn off a particular ModSecurity rule. This, of course, creates a whole other set of problems. But, at least the uploads are working.

  3. Greg O

    Feb 14 Xojo Inc Answer

    @Jay M As @Kyryl P suggested: In my case it is a known bug in Apache/ModSecurity (not Xojo). It is particularly problematic with large PDF documents.

    I would like to point out that it’s not really a bug in mod_security. It’s doing exactly what it’s designed to do.

    The issue arises from an attached file (does not have to be a pdf) having a particular sequence of characters, in this case:

    chr(13)+chr(10)+”- -“

    Followed by any ascii character. This is the exact pattern that an http post request uses to break up attachments.

    Having looked at a few offending PDF files on this case, it appears that the app that is creating these files is not properly encoding that data as simply opening the file in Acrobat Pro or PDFPenPro and saving a new file solves the issue.

or Sign Up to reply!