• trishac822

    (@trishac822)


    While using WP Document Revisions, I select Documents > Add Document. I add a title and then an Excel spreadsheet. However, I keep getting an error indicating that this type of document is not allowed for security reasons. The file is an Excel spreadsheet with macros. Are the macros affecting the upload? I’ve not had issues with other Excel files.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor nwjames

    (@nwjames)

    @trishac822,
    There is nothing in WP Document Revisions itself that deals with the internal content of the file. It uses the standard WP async_upload process to upload the file (although it then uses a plug-in specific process to obscure the name of the file). It then uses PHP readfile to output the file contents.

    As a test you could try loading the file as a media file. It can also be downloaded. [I tried this morning with an .xls file and also an .xlsx file and they worked fine with no adverse messages, although I don’t believe that there were any specific macros in my examples.]

    Then you should be able to see where the problem is coming from. Certainly the name of the file being stored will be the name you are uploading it as (and so easier to find where the error message is coming from).

    Hope this of use,
    Neil James

    Thread Starter trishac822

    (@trishac822)

    Thank you! That’s exactly it! The file has macros, and I can’t upload it via the Media option, so that’s the issue. When I disable the macros, it uploads fine. Thank you SO much for helping me with this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP Document Revisions’ is closed to new replies.