Location of file attachment code

Can anyone point me to the location of the code that controls the file attachment screen that is triggered by the attach button (shown below)? I am trying to make the checkbox default to Private instead of Public.

image

Check upload.js
/frappe/public/js/frappe/upload.js

2 Likes