erpnext
erpnext copied to clipboard
use doctype File directly instead of save_file from file_manager.py
save_file
will change the filename and not clean up after itself after a rollback
This is a preparation for another (not yet done) PR to solve https://github.com/frappe/frappe/issues/25178 which will completey remove the save_file
function from file_manager.py
.