Problems with attachments from inbound emails #1107
-
Hi All, I am having 2 problems with attachments on inbound emails:
Thanks for your help. Best, Kevin |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Hello
Just a quick reply as I am away from PC.
There is a helpdesk settings.py entry to extend the allowed attachment
extensions. If you take a look at the online documentation I believe it is
mentioned. There are also a number of closed issues in GitHub where this
dame question has been raised.
There has been a recent rewrite of mail attachment handling which has been
pushed to GitHub as a new branch so it can be tested. I will hopefully be
able to do my own testing of that branch next week as I am hoping it will
handle attachments better.
…On Sat, 29 July 2023, 7:21 am Kevin Trainor, ***@***.***> wrote:
Hi All,
I am having 2 problems with attachments on inbound emails:
1.
I cannot attach .zip files and have them placed in the ticket. The
error message that I am getting in the log file is: ['Unsupported file
extension: .zip']. My major use case is helping students in Python
programming courses. In my previous ticket system, there was no problem
with students zipping up their PyCharm projects and uploading them to a
ticket. So, this is an important use case for me. I can't see a place to
configure allowed file extensions. Can you point me to a solution or a
work-around?
2.
Other documents (like .pdf files) upload just fine. There are links
appearing in my tickets. Unfortunately, clicking on those links gets me a
404 page. I am suspecting that the solution to this problem is to configure
the HTTP server to serve files from the attachments directory itself and
not pass these requests to the Django server. Can you confirm that for me.
Can you think of a way to get these links to work when using the
development server? It would nice to be able to test the links during
configuration/testing and not in production.
Thanks for your help.
Best,
Kevin
—
Reply to this email directly, view it on GitHub
<#1107>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEAXOGDIETP3EWV4CMA3C23XSQUMTANCNFSM6AAAAAA2374OJA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Also the attachments are stored in the MEDIA Directory. Again this is
defined in settings.py but may not be there. There is plenty if django doco
on how to set this up and server it.
Cheers
…On Sat, 29 July 2023, 7:21 am Kevin Trainor, ***@***.***> wrote:
Hi All,
I am having 2 problems with attachments on inbound emails:
1.
I cannot attach .zip files and have them placed in the ticket. The
error message that I am getting in the log file is: ['Unsupported file
extension: .zip']. My major use case is helping students in Python
programming courses. In my previous ticket system, there was no problem
with students zipping up their PyCharm projects and uploading them to a
ticket. So, this is an important use case for me. I can't see a place to
configure allowed file extensions. Can you point me to a solution or a
work-around?
2.
Other documents (like .pdf files) upload just fine. There are links
appearing in my tickets. Unfortunately, clicking on those links gets me a
404 page. I am suspecting that the solution to this problem is to configure
the HTTP server to serve files from the attachments directory itself and
not pass these requests to the Django server. Can you confirm that for me.
Can you think of a way to get these links to work when using the
development server? It would nice to be able to test the links during
configuration/testing and not in production.
Thanks for your help.
Best,
Kevin
—
Reply to this email directly, view it on GitHub
<#1107>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEAXOGDIETP3EWV4CMA3C23XSQUMTANCNFSM6AAAAAA2374OJA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Check this post for how to enable ZIP files: |
Beta Was this translation helpful? Give feedback.
Check this post for how to enable ZIP files:
#1057