• Resolved sjtyas

    (@sjtyas)


    G’day!

    Really love this plugin! I’m having a little bit of problem with XLSX files…

    When a user downloads a file of this type, they are getting errors about the file, and MS Excel is asking if they would like to Fix the file. For some users this works, for others it doesn’t. Sometimes the browser throws an error, sometimes Excel itself does.

    The Excel error reads:
    We found a problem with some content in ‘filename.xlsx’ Do you want us to try to recover as much as we can? Yes/No

    If you click Yes, then it does seem to “Fix” but it gives a message “Excel completed file level validation and repair. Some parts of this workbook may have been repaired or discarded.”

    Any thoughts?

    Thanks!

    Steve

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author bhaldie

    (@bhaldie)

    you can try a test, open the file mdocs-downloads.php and goto line 70:

    
    ob_end_clean();
    

    and change it to this:

    
    while (ob_get_level()) {
       ob_end_clean();
    }
    
    Thread Starter sjtyas

    (@sjtyas)

    Hi Ian

    Thank you for your help.

    I have tried that suggestion. But I am still getting the same error.

    Am testing the modified code over here: https://tyas.me/sandpit/services/

    Any further thoughts?

    Many thanks again.

    Steve

    Plugin Author bhaldie

    (@bhaldie)

    try this:

    line 62:

    
    else header('Content-Disposition: attachment; filename="'.$filename.'"');
    

    change to this:

    
    else header('Content-Disposition: inline; filename="'.$filename.'"');
    

    Hi

    I have the same issue with the xlsx files, i have tried to replace this code but it is the same, any ideas? thanks

    update, found a solution for the line on 61, replacing also attachment with inline, seems to work

    • This reply was modified 5 years, 3 months ago by stirbiu.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘XLSX Files’ is closed to new replies.