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 -
@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
GlennHi 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.