diff --git a/frappe/handler.py b/frappe/handler.py index 4ef8fb91dd..68e96803cb 100644 --- a/frappe/handler.py +++ b/frappe/handler.py @@ -36,7 +36,6 @@ ALLOWED_MIMETYPES = ( "text/plain", "video/quicktime", "video/mp4", - "text/csv", ) @@ -181,7 +180,7 @@ def upload_file(): if content is not None and (frappe.session.user == "Guest" or (user and not user.has_desk_access())): filetype = guess_type(filename)[0] if filetype not in ALLOWED_MIMETYPES: - frappe.throw(_("You can only upload JPG, PNG, PDF, TXT or Microsoft documents.")) + frappe.throw(_("You can only upload JPG, PNG, PDF, TXT, CSV or Microsoft documents.")) if method: method = frappe.get_attr(method)