WebFileUploader test help please!

  1. ‹ Older
  2. last year

    Jay M

    13 Feb 2019 Testers, Xojo Pro 30.3668397,-97.7399123
    Edited last year

    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

    14 Feb 2019 Xojo Inc Answer scout.galaxy.barn

    @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!