<!--
Welcome to the Frappe Framework issue tracker! Before creating an issue, p…lease heed the following:
1. This tracker should only be used to report bugs and request features / enhancements to Frappe
- For questions and general support, refer to https://stackoverflow.com/questions/tagged/frappe
- For documentation issues, use https://frappeframework.com/docs/user/en or the developer cheetsheet https://frappeframework.com/docs/user/en/bench/resources/bench-commands-cheatsheet
2. Use the search function before creating a new issue. Duplicates will be closed and directed to
the original discussion.
3. When making a feature request, make sure to be as verbose as possible. The better you convey your message, the greater the drive to make it happen.
-->
**Is your feature request related to a problem? Please describe.**
I'm using erpnext to build a support portal where my customers can log in and file support tickets. The customer are not given desk access and can only access the web views. However, I noticed that customers are unable to upload log files through the web form. Request/response inspection shows me this error:
```
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 69, in application
response = frappe.api.handle()
File "apps/frappe/frappe/api.py", line 55, in handle
return frappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 37, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 75, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/init.py", line 1447, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/handler.py", line 196, in upload_file
frappe.throw(_("You can only upload JPG, PNG, PDF, or Microsoft documents."))
File "apps/frappe/frappe/init.py", line 510, in throw
as_list=as_list,
File "apps/frappe/frappe/init.py", line 478, in msgprint
_raise_exception()
File "apps/frappe/frappe/init.py", line 433, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.ValidationError: You can only upload JPG, PNG, PDF, or Microsoft documents.
```
Reading the code, seems like the rule there, if user is guest or does not have access to desk, they are not allowed to upload anything except JPG, PNG, PDF, DOC, DOCX, XLS, XLSX, ODT and ODS. While the list is good enough, I believe TXT file should also be allowed as logs are usually in TXT.
**Describe the solution you'd like**
TXT file is allowed by default, or, a better solution is to allow this to be configurable, but that requires more work.
**Describe alternatives you've considered**
- Instruct customer to put logs in .doc file, but that is not suitable if the log have long rows as word wrap would make it difficult to read.
- Instruct customer to upload log elsewhere and link, but that create risk of possible lost attachment when we want to review back the ticket in future as the file is stored outside the system, controlled by customer
**Additional context**
I'm using ERPNext frappecloud deployment, so I don't think i can implement the fix myself without forking the main repo. If there are ways that I can monkeypatch this in my bench, please advise as that'll be useful for me to implement the fix myself.