Uploadthing Duplicate File Detection

How should one handle duplicate file uploads? for example, if I upload test.pdf and then try uploading it again, how do I make sure that the duplicate doesn’t get stored inside uploadthing? (If page is refreshed then the file wouldn’t be considered a duplicate)

More worried about the backend part

Also, should I rate limit file uploads? if so whats a suggested frequency/interval
Was this page helpful?