이 함수를 사용해야 합니다:
https://github.com/discourse/discourse/blob/c38b5094da44554f2ffdee7e37eba95fa9ce461/app/models/upload.rb#L455C3-L457C6
그 다음 데이터베이스에서 SHA1를 조회하여 업로드 레코드를 찾으면 됩니다.