Merge branch 'upload-guest-fix' of github.com:scmmishra/frappe into upload-guest-fix
This commit is contained in:
commit
652483c225
1 changed files with 0 additions and 1 deletions
|
|
@ -170,7 +170,6 @@ def upload_file():
|
|||
if frappe.session.user == 'Guest':
|
||||
import mimetypes
|
||||
filetype = mimetypes.guess_type(filename)[0]
|
||||
print(filetype)
|
||||
if filetype not in ['image/png', 'image/jpeg', 'application/pdf']:
|
||||
frappe.throw("You can only upload JPG, PNG or PDF files.")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue