Can’t open downloaded Office files

The links are working, we can download our files.

When we are trying to open .xlsx, .docx, .pptx files downloaded by the Groups File Access plugin we get the following error:
“Excel cannot open the file `filename` because the file format or extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file.”

But when we download the file from the original link “/wp-content/uploads/…” the file is not corrupted and you can open it.

.pdf are downloadable and can be opened.


Comments

8 responses to “Can’t open downloaded Office files”

  1. Gustaf Anderson Avatar
    Gustaf Anderson

    Hello Eugen,

    Nice hearing from you.
    We have set up a user for you, a mail has been sent from staging.industriarbetsgivarguiden.se which is our staging-site.

    When you have logged in you can try visiting this page and click the link in the orange box:
    https://industriarbetsgivarguiden.se/arbetstid/arbetstider-arbetare-stal-och-metallindustrin/modell-for-berakning-av-arbetstid-och-ob-ersattning-stal-och-metallindustrin/

    An Excel file will be downloaded which cannot be opened in Excel.
    I’m eager to hear from you soon.
    Best regards.

      1. Eugen Bleck Avatar
        Eugen Bleck

        Hi Gustaf,

        Good morning and thank you for sharing the credentials and for creating the staging environment.

        It enabled me to take a closer look and we are looking into the issue.

        Please I’ll keep you posted when I have more on this.

        Stay safe and be awesome!
        Best,
        Eugen.

        1. Gustaf Anderson Avatar
          Gustaf Anderson

          Hi Eugen,

          have you had a chance to look into this issue?
          It has been a couple of days now and since the problem still occurs it would be great if you could get back to me as soon as possible.

          Looking forward to hear from you!

          Best regards.

          1. Eugen Bleck Avatar
            Eugen Bleck

            Hi Gustaf,

            Good morning, I trust you are well and safe!

            Sorry, but it seems my email didn’t reach you. Let me forward it to this email.

            Best,
            Eugen.

            1. Gustaf Anderson Avatar
              Gustaf Anderson

              Hi Eugen,

              We have found a solution for the problem. I’m attaching a link with an image so that you can see what we added in your plugin to make it work.

              https://drive.google.com/file/d/1kECjohpAad6T8l8reS1ygWm8vLPFFjQd/view?usp=sharing

              1. Eugen Bleck Avatar
                Eugen Bleck

                Hi Gustaf,

                Good morning and happy new week!

                Thank you so much for the feedback! I’ll go ahead and share this with the rest of the team.

                Stay safe and be awesome!
                Best,
                Eugen.

  2. Eugen Bleck Avatar
    Eugen Bleck

    Hi Gustaf,

    Good morning and happy new week!

    I trust you are well and safe! Thank you so much for reaching out and for using Groups.

    Thank you for sharing this with us, please enable WordPress debugging and set up a staging environment so I can take a closer look at your setup. Furthermore, for security reasons, please email the admin credentials to the dev/staging site here: eugen [at] itthinx [dot] com.

    I remain eager to help resolve this issue!

    STAY SAFE and be awesome!
    Best,
    Eugen.

Share