Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mewersthecat

    (@mewersthecat)

    Right.. I assumed something like that would be hard to reproduce considering, the problem would come up pretty fast (not being able to download files that aren’t… text based)

    Thanks for your help, I’m really not sure of the cause of my BOM problem.. but i guess that’s irrelevant now. I’m sure some module on the shared webserver is writing the BOM to the response stream before executing the PHP file.

    Have a good day!

    Thread Starter mewersthecat

    (@mewersthecat)

    I’m not talking about Exporting to Excel, I’m talking about downloading files that users uploaded via the Contact Form.

    I had the latest version of everything, Contact Form DB, Contact Form 7 and WordPress.. but if I uploaded, say… a zip file, then clicked on the file name, save it to my harddrive, then try to open it.. it would be corrupt and not open properly…..
    The cause being, the first 3 bytes of the file were the BOM, which corrupted the entire thing.

    I’m not sure if the actual cause was some… apache/nginx module.. As I was developing on some.. bluehost shared hosting service.. or what.. but.. I fixed it by adding the ob_clean() at the begining of the ajaxFile function.

    Thread Starter mewersthecat

    (@mewersthecat)

    I resolved my own issue…

    The cause the octet stream was being downloaded with an automatic BOM at the beginning which was corrupting my files.

    I’m not a PHP guy so it took a little work.. I made sure my PHP files were being saved as utf8 without BOM, and still no luck,
    I edited CF7DBPlugin.php and made sure to call ob_clean() before calling the header information in the ajaxFile function., and that resolved my issue.. I’m not sure if there’s a more elegant solution or not..

Viewing 3 replies - 1 through 3 (of 3 total)