Krayin Forum

    Krayin

    • Register
    • Login
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Uploaded Files - cannot view when downloading

    Comments & Feedback
    2
    2
    19
    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.
    • G
      GlennMUK last edited by

      Hello

      I have started using my Krayin version 2.1.2.

      When I upload a file to a lead (example word document or PDF, the file appears to attach fine.
      However, when I go back to look at the file later, the file downloads (as a random file name such as: 0aoY2cuIM41JB1lUf35pxi9GmAMiGUQvEooFdf0q).
      When I try to view/read this file, I cannot.

      When I try to open a PDF file in my browser, it says:
      We can't open this file
      Something went wrong.

      When I try to open a word document, it says:

      Word found unreadable content in "filename". Do you want to recover the contents of this document? If you trust the source of this document, click Yes.

      When I click on Yes, it says this:

      *Word experienced an error trying to open the file. Try these suggestions.
      *Check the file permissions for the document or drive.
      *Make sure there is sufficient free memory and disk space.
      Open the file with the Text Recovery converter.

      Has anyone experienced a similar problem? Is there a known way to resolve this?

      Thanks
      Glenn

      1 Reply Last reply Reply Quote 0
      • A
        avalynn1133 last edited by

        @GlennMUK said in Uploaded Files - cannot view when downloading:

        Hello
        I have started using my Krayin version 2.1.2.
        When I upload a file to a lead (example word document or PDF, the file appears to attach fine.
        However, when I go back to look at the file later, the file downloads (as a random file name such as: 0aoY2cuIM41JB1lUf35pxi9GmAMiGUQvEooFdf0q).
        When I try to view/read this file, I cannot.
        When I try to open a PDF file in my browser, it says:
        We can't open this file
        Something went wrong.
        When I try to open a word document, it says:
        Word found unreadable content in "filename". Do you want to recover the contents of this document? If you trust the source of this document, click Yes.
        When I click on Yes, it says this:
        *Word experienced an error trying to open the file. Try these suggestions.
        *Check the file permissions for the document or drive.
        *Make sure there is sufficient free memory and disk space.
        Open the file with the Text Recovery converter.
        Has anyone experienced a similar problem? Is there a known way to resolve this?
        Thanks
        Glenn

        Hi Glenn,

        Yes, this is a known issue and usually happens due to incorrect file storage or MIME type handling in Krayin 2.1.2. The files upload correctly, but when downloaded they lose their original filename and headers, so Word/PDF apps can’t recognize them.

        Check that:

        Your storage directory permissions are correct

        The files are being served with proper headers (especially Content-Type and Content-Disposition)

        The filesystem driver (local/S3) is configured correctly in .env

        Many users have fixed this by clearing cache and reconfiguring storage or updating to a newer patch if available.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB | Contributors