mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 13:05:53 +03:00
[GH-ISSUE #181] Attachments download fail or lag #148
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#148
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 @szilardx on GitHub (Mar 31, 2017).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/181
Originally assigned to: @jasonmunro on GitHub.
I have one strange issue with Cypht:
Firefox cannot download attachments from imap (tested with gmail and outlook), Chromium can download, but the download lags, for example it stops at 1mb for a 1,5 mb pdf.
I have tested with nginx, tried multiple settings in the config.
Just tested with a standard apache install, it has the same problems. DevTools in Firefox shows that nothing gets actually transferred, and then it timeouts, and download fails.
Have you experienced this? Can you advice me about nginx config, or anything?
Thanks!
@jasonmunro commented on GitHub (Mar 31, 2017):
I have not experienced this, but I will try to reproduce and let you know what I find!
@jasonmunro commented on GitHub (Mar 31, 2017):
I can reproduce this with a 1.5 MB PDF and firefox, and I think I see the problem. We are sending the content-length header, but it's incorrectly reporting the size of the file. Chrome seems to handle this ok, but firefox simply fails. Removing the length header makes it work. I'm not sure I can predetermine the size of the file, so removing the header might be the only fix. If you want to test and see if that works for you, comment out line 383 of modules/imap/modules.php.
I will update this issue once I commit a fix.
@szilardx commented on GitHub (Apr 2, 2017):
Commenting out the line fixed the issue quickly, and attachments are downloaded instantly.
Thank you very much! 👍 :)
@jasonmunro commented on GitHub (Apr 3, 2017):
Thanks for testing this out! Committed in
github.com/jasonmunro/cypht@9590feeff2