ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

How to make all attachments private as default in the upload window

How to make all attachments private as default in the upload window ?

Hey @markgates ,

Try https://github.com/frappe/frappe/blob/880d824b77d2a6392a5d8ae9ea7db22199513c91/frappe/public/js/frappe/upload.js#L84

to change the line to
file => Object.assign(file, {is_private: opts.is_private || 1})

so be default all the attachment will be made private