@ -343,3 +343,13 @@ def change_file_ext():
except:
return False
return True
def delete_file_ext():
try:
frappe.db.sql('''
Delete from tabFile where substring(file_url,length(file_url)-2) REGEXP BINARY '[A-Z]';
''')
frappe.db.commit()