Where to find a code of frappe file doctype

upload file method is written where in frappe code


You mean this one?