K2DocAttachment and duplicate doc names

Last post 08-03-2008, 9:43 by Aleksey. 3 replies.
Sort Posts: Previous Next
  •  08-30-2004, 7:45 PM 12628

    K2DocAttachment and duplicate doc names

    Something I was thinking about this afternoon when working with the K2DocAttachment control is the ability to capture and handle a duplicate doc name posting event. It appears that if a new document is uploaded that has the same name as a previous doc, the new one just overwrites the old and it doesn't give you any indication that this is happening. Is there any way to capture and handle this and possibly prevent it from happening? I have thought about instructing the users to name their documents in such a way to help prevent this, but it would be nice to handle this from a code perspective just in case...
  •  08-31-2005, 4:05 PM 12629 in reply to 12628

    K2DocAttachment and duplicate doc names

    ironically I am wondering the same thing a year later. Does anyone have any idea how to keep the DocAttachment control from overwriting an existing document of the same name?

    Michael Fischer
  •  09-01-2005, 7:02 12630 in reply to 12629

    K2DocAttachment and duplicate doc names

    Hi Guys,

    The doc attachment control is just an interface to the document residing in SPS, uploading documents to SPS with the same name will not overwrite the document, it will actually create a new version of that document. Looking at the doc in SPS you will only see the 1 doc, opening this doc will open the latest one, to have a look at the various version of the doc drop the menu down in SPS and click on the “Version History” menu. The doc attachment control will always open the latest version available of that document. Note: Version history must be enabled on the document library in SPS.
    Cheers,
    Rénier

    The statements and opinions made in my postings are my own, and do not reflect the opinions of SourceCode Technology Holdings, Inc. or its subsidiaries. All information is provided as is with no warranties, express or implied, and grants no rights or licenses.
  •  08-03-2008, 9:43 25285 in reply to 12630

    Re: K2DocAttachment and duplicate doc names

    Is there any ideas how to check duplicate doc names when using K2DocAttachment control? This question is still actual for me. Thanks for advise.

View as RSS news feed in XML