šŸ”“ January 2024 Alert: Forum support inactive!
New forum registration are currently closed.
Use GitHub discussions
.

    UVdesk

    • Login
    • Search
    • Recent

    Solved Email attachment download "Word found unreadable content in 8qqrwPwAl3HRa01d.docx"

    Technical Help
    3
    11
    1298
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      Brandon-2021 last edited by

      All Microsoft Office XML versions (docx, pptx, xlsx, etc) when downloaded show an error " Word found unreadable content in 8qqrwPwAl3HRa01d.docx. Do you want to recover the contents of this document? If you trust the source of this document, click Yes. ".

      Is this a known issue?

      1 Reply Last reply Reply Quote 0
      • B
        Brandon-2021 last edited by

        Any office file with the x extension is downloading corrupted. Has anyone had this issue with CentOS 7?

        1 Reply Last reply Reply Quote 0
        • peopleinside
          peopleinside EX helping member last edited by

          Hi @Brandon-2021 thank you for your post. A staff member will reply you asap. Sorry for the delay.
          Your post was in the moderation queue. I informed UVdesk team about your post anyway they will check forum soon.

          If no reply feel free to update me here but be sure a reply will arrive.
          Please be sure to use the latest UVdesk version https://github.com/uvdesk/community-skeleton/releases/tag/v1.0.13 check also if you have some particular error log file.

          šŸ’¬ You can also ask help on GitHub Discussions
          šŸ”“ I am no more active on Uvdesk
          šŸ”“ Forum support is inactive!

          1 Reply Last reply Reply Quote 0
          • Sanjeev
            Sanjeev developer UVdesk Staff last edited by admin

            @Brandon-2021

            Please share the original file with the same extension we will test if there is any issue from our side.

            1 Reply Last reply Reply Quote 0
            • B
              Brandon-2021 last edited by

              @Sanjeev Hi, which file are you referring to? If you are asking for one of the corrupt files any file saved as docx (Word), xlsx (Excel), pptx (Powerpoint) returns corrupt. When you create a simple file with a sentence in it, save, upload, download it is still readable. However, you get this error window when opening. 0ea2ea48-1fb5-4389-8143-549831d766ea-image.png.

              Forgive me if I am finding the version in the wrong file (CHANGELOG-1.0.md), but the version is * 1.0.12 (2020-07-27).

              Steps taken:

              • File uploads as an attachment with no issue.
              • When I download the file after uploading it to the server via FTP (file with the new name) no issue.
              • When trying to download the file on the ticket page the file is corrupt.
              • I tried editing the page HTML to just download the file and not opening a new tab, still corrupt.

              Not sure if the issue is with the route URL link for the download or server permissions. I tried this on a CentOS 7 server as well as a Ubuntu 20.04 server, same issue on both.

              I also looked for an error log but couldn't see anything, if there is a specific log I should be looking at please let me know.

              1 Reply Last reply Reply Quote 0
              • B
                Brandon-2021 last edited by

                @Sanjeev I also just tried the same steps on the UV-Desk demo page and the file is corrupt as well.

                1 Reply Last reply Reply Quote 1
                • B
                  Brandon-2021 last edited by

                  I have found and corrected the issue.

                  In these two files

                  • vendor/uvdesk/support-center-bundle/Controller/Ticket.php
                  • vendor/uvdesk/core-framework/Controller/Ticket.php

                  In the function "public function downloadAttachment(Request $request)", add the this line of code:

                  • $response->headers->set('Content-Length', $attachment->getSize());

                  Below

                  • $response->headers->set('Content-Disposition', 'attachment; filename='. $attachment->getName());

                  And Above

                  • $response->sendHeaders();

                  @peopleinside Thanks again for the help!

                  peopleinside 1 Reply Last reply Reply Quote 2
                  • peopleinside
                    peopleinside EX helping member @Brandon-2021 last edited by

                    @Brandon-2021 congratulations! Let wait developers check this and add as official fix. Waiting a feedback from @Sanjeev than I will patch also my install. Thank you very much for this report and for sharing also a solution!

                    Are you a programmer?
                    I want be also good as you to fix code but I'm not ^_^

                    Stay safe, take care and have a wonderful time!

                    šŸ’¬ You can also ask help on GitHub Discussions
                    šŸ”“ I am no more active on Uvdesk
                    šŸ”“ Forum support is inactive!

                    B 1 Reply Last reply Reply Quote 1
                    • B
                      Brandon-2021 @peopleinside last edited by

                      @peopleinside Not a problem, I am a programmer and just glad to help out!

                      peopleinside 1 Reply Last reply Reply Quote 1
                      • Sanjeev
                        Sanjeev developer UVdesk Staff last edited by

                        @Brandon-2021

                        Thanks for your contribution !!!

                        We have updated your suggested line of code in our project master branches you can check.

                        https://github.com/uvdesk/support-center-bundle/commit/342f9da695c407384030710af298b6ffcf95ba16

                        https://github.com/uvdesk/core-framework/commit/2735e1219c8ff8a384e4b366e91f13f28738a56c

                        Hope you will contribute the same in near future for this opensource project.

                        Stay tuned with us here we are also adding new features with this project as well.

                        1 Reply Last reply Reply Quote 1
                        • peopleinside
                          peopleinside EX helping member @Brandon-2021 last edited by peopleinside

                          @Brandon-2021 I'm so happy you joined and fixed one issue no one was aware of.
                          Many thanks.

                          šŸ’¬ You can also ask help on GitHub Discussions
                          šŸ”“ I am no more active on Uvdesk
                          šŸ”“ Forum support is inactive!

                          1 Reply Last reply Reply Quote 1
                          • First post
                            Last post