function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Deep SmithDeep Smith 

While uploading file from salesforce using LWC component is there any way we can check duplicate file?

is there any way to check duplicate file is being uploaded?

based on name is one way but there can be two different files with same extension but with different content..

is there any way in LWC js or apex that so based on unique file id we can identify?

Best Answer chosen by Deep Smith
SubratSubrat (Salesforce Developers) 
Hello ,

You can refer this discussion bases on your requirement -> https://salesforce.stackexchange.com/questions/191176/how-to-prevent-duplicate-file-contentdocument-if-the-same-file-is-uploaded-at

Also please see this App exchange -> https://appexchange.salesforce.com/listingDetail?listingId=a0N300000058vzKEAQ&tab=e (https://appexchange.salesforce.com/listingDetail?listingId=a0N300000058vzKEAQ&tab=e)

Hope it works !
Thank you.