Check before upload a file for duplicate entry
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2011 07:05 AM
Hi friends
i want to check before upload if the file is already exists or not. if its exists means i want to put version or rename the file like share. anybody know how to solve this?
i want to check before upload if the file is already exists or not. if its exists means i want to put version or rename the file like share. anybody know how to solve this?
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2011 04:01 AM
Before uploading you have to execute a query to check if this content exists or not.
If you are using Lucene, for example, you have to execute a query similar to the following:
Hope this helps.
If you are using Lucene, for example, you have to execute a query similar to the following:
PATH:"/app:company_home/cm:CustomSpace/*" AND @cm\:name:"contentToFindFilename.txt"
If the content exists then you could update the content version otherwise you can upload a new content.Hope this helps.
