mirror of
https://github.com/HaschekSolutions/opentrashmail.git
synced 2026-04-25 06:35:55 +03:00
[GH-ISSUE #36] Attachments won't open #21
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentrashmail#21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @t10ss on GitHub (Jan 20, 2022).
Original GitHub issue: https://github.com/HaschekSolutions/opentrashmail/issues/36
When I try to open any attachment I get this message: {"status":"err","reason":"File not found"} in the browser.
The file is stored in the file system in the attachments directory
Any idea how to fix?
Thanks
@geek-at commented on GitHub (Jan 21, 2022):
sounds like both your problems #36 and #37 are issues with permissions. Can you try giving your monted folders 777 rights and see if it works then.
But yeah ultimately I'll have to edit the docker flow to add a special user so not everything runs as root
@t10ss commented on GitHub (Jan 21, 2022):
It fixed the deleting of files, but didn't fix attachment viewing.
Still get the same result {"status":"err","reason":"File not found"} . I'm not finding anything in the logs about it. Maybe there is a better place I should look.
@geek-at commented on GitHub (Jan 22, 2022):
Can you confirm that the attachment is actually in the storage?
If it's not try sending another mail with an attachment now that you set the permissions of the folder to 777
@t10ss commented on GitHub (Jan 23, 2022):
File is in storage. I tried sending another attachment here is the listing of the directory. The PDF file was in the directory before the chmod to 777, so it has 777 permissions.
The PNG file was received after I set the permissions of /var/www/opentrashmail/data to 777
/var/www/opentrashmail/data/test@mailsnap.com/attachments # ls -l
total 36
-rwxrwxrwx 1 root root 29909 Jan 21 22:28 1642804128295-Protein.pdf
-rw-r--r-- 1 root root 2281 Jan 23 03:43 1642909406496-woxen-icon.png
@geek-at commented on GitHub (Jan 23, 2022):
there was a bug in the code. your attachments should work now after updating to the latest version