2GB of video file upload to SharePoint 2013 document library

Hi All,
We have a requirement of uploading a 2GB of video file to a SharePoint 2013 document library. Will there be any issue due to increasing the maximum file size?
Many Thanks,
sudesh withanage

It will be better if you save all your videos at one location,i.e Asset Library.Check the link for Asset libraries
http://technet.microsoft.com/en-us/library/ee414275(v=office.15).aspx
In case you want to add other files (i,e excel ,word) along with videos you will need to increase library size,
Check the following link to increase the file size ,as well as the issues and workaround to solve the problems
http://blogs.technet.com/b/praveenh/archive/2012/11/16/issues-with-uploading-large-documents-on-document-library-wss-3-0-amp-moss-2007.aspx
Please Mark it as answer if this reply helps you in resolving the issue,It will help other users facing similar problem

Similar Messages

  • Remote upload into sharepoint 2013 document library (cloud based)

    We have a sharepoint 2013 in the cloud.
    Is it possible to have some kind of service (windows or web based) that can access a document library on said cloud server and put files into said document library?
    I don't think we have a lot of behind the scenes access to the cloud instance of 2013.

    Hi,
    As I said above, we could use the Client Object Model to upload the files without the user having to go to SharePoint in the browser first and logging in.
    We can use the credentials in the code as below, the code would copy files to SharePoint online, it worked well in my environment, you can check whether it works.
    public static void CopyDocuments(string srcUrl, string srcLibrary, string destUrl, string destLibrary)
    // set up the src client
    ClientContext srcContext = new ClientContext(srcUrl);
    SecureString passWord1 = new SecureString();
    foreach (char c in "Password01!".ToCharArray()) passWord1.AppendChar(c);
    srcContext.Credentials = new SharePointOnlineCredentials("[email protected]", passWord1);
    Web srcWeb = srcContext.Web;
    List srcList = srcWeb.Lists.GetByTitle(srcLibrary);
    ListItemCollection itemColl = srcList.GetItems(new CamlQuery());
    srcContext.Load(itemColl);
    srcContext.ExecuteQuery();
    // set up the destination context
    ClientContext destContext = new ClientContext(destUrl);
    SecureString passWord = new SecureString();
    foreach (char c in "Password01!".ToCharArray()) passWord.AppendChar(c);
    destContext.Credentials = new SharePointOnlineCredentials("[email protected]", passWord);
    // get the destination list
    Web destWeb = destContext.Web;
    destContext.Load(destWeb);
    destContext.ExecuteQuery();
    foreach (var doc in itemColl)
    try
    //if (doc.FileSystemObjectType == FileSystemObjectType.File) //Field or Property "FileAttachement not found."
    // get the file
    File file = doc.File;
    srcContext.Load(file);
    srcContext.ExecuteQuery();
    // build destination url
    string nLocation = destWeb.ServerRelativeUrl.TrimEnd('/') + "/" + destLibrary.Replace(" ", "") + "/" + file.Name;
    // read the file, copy the content to new file at new location
    FileInformation fileInfo = File.OpenBinaryDirect(srcContext, file.ServerRelativeUrl);
    File.SaveBinaryDirect(destContext, nLocation, fileInfo.Stream, true);
    catch (Exception ex)
    http://blog.blumshapiro.com/blog/2012/08/22/sharepoint-2010-using-the-client-object-model-to-move-files-and-folders-across-site-collections-and-subsites/
    Thanks,
    Jason
    Forum Support Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected].
    Jason Guo
    TechNet Community Support

  • Multiple file upload in SharePoint 2013 using AjaxFileUpload

    Hi all,
    I want to add multiple files using file upload control in our visual web part SharePoint 2013. I tried to use AjaxFileUpload (from Ajaxcontrol toolkit) in my visual web part and also added the handler in web.config as described in article (http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ajaxFileUpload/ajaxFileUpload.aspx).
    But, it’s not even opening the browse dialog box.
    I also tried to see if any third party control is available to achieve multiple file upload in SharePoint 2013 Visual web part, but without any success.
    Please help.
    Regards,
    Monica

    Hi
    Try to add the dll files of Ajax Control Toolkit in the
    Bin folder of your SharePoint Web Application (IIS Site)
    Hope that help
    Ahmed Naji SharePoint Geek
    MCP|MCTS|MCPD
    My English SharePoint Blog | DotnetFinder My Arabic SharePoint Blog|
    CodeReloaded
    My Gallery Contributions
    SharePoint 2010 Twitter Web Part
    SharePoint 2010 Custom Timer Job

  • Can't open MS Word .doc files from SharePoint 2013 document library?

    Hello,
    I have uploaded some MS Word files with .doc extension into a SharePoint 2013 document library, but they don't open when clicked.  I can do a number of things to the file, like view and edit properties, download and other things, but it does not
    open up when mouse clicked.  There are PDF files in the document library and they open up just fine.  Any ideas?
    I should add that MS Word 2010 .docx files can not be opened either.
    Thanks.
    Paul

    Hi,
    Whether you use office 2013.
    Considering this .doc file can be smoothly opened in Office if you downloaded it to your local, it indicates that the Word document and Microsoft Word doesn’t have any problems. The issue may be caused by the compatibility between Office
    and your site.
    1.Check whether you have the SharePoint OpenDocuments Class add on enabled at first.
    Internet Explorer >Tools iron > Manage add-ons >
    Choose to Show All add-ons. Find SharePoint OpenDocuments Class and make sure it’s enabled.
    2.go to Compatibility view settings > add your SharePoint site to compatibility view
    3.go to Internet Options,
    Advanced > Reset… > Check Delete personal settings and reset
    Security > Trusted sites > sites > add SharePoint sites to trusted sites
    4.If it doesn’t work, please open Word, go to Options > Trust Center > Trust Center Settings > Protected View > Uncheck all.
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • Email attachments from SSRS email subscription are not being uploaded to an email enabled SharePoint 2013 document library

    Email attachments from SSRS email subscription are not being uploaded to an email enabled SharePoint 2013 document library.
    I have tested the library using a standard email (with attachment) to the library and this works fine. 
    I have monitored the drop folder on the server and I can see both emails being picked up in drop and processed by SharePoint.  The email sent from a regular email account is uploaded with the attachment, whereas the email sent via SSRS subscription
    email is uploaded and the attachment (report) is missing.

    An update on this.  The email when sending from SSRS subscription is received in the library and the attachment is contained within the .EML file uploaded.
    The behaviour that I would like from SSRS subscription emails are to just have the document and not the email.
    Below is a snippet of the .EML files I quick copied from the Drop folder.
    Email attachment snippet sent from SSRS Subscrption:
    ----boundary_2477_75fa3d73-56de-4948-ad82-6588f3a35b95
    Content-Type: application/octet-stream; name="Toilet Usage by Month.docx"
    Content-Transfer-Encoding: base64
    Content-Dis;
     filename="=?utf-8?B?VG9pbGV0IFVzYWdlIGJ5IE1vbnRoLmRvY3g=?="
    Content-ID: <10722c0f-749e-4ecb-ac3f-206317bae734>
    UEsDBBQAAAAIAEVcbEY4Xh4a5nsAAPJtMQARABwAd29yZC9kb2N1bWVudC54bWwgohgA
    KKAUAAAAAAAAAAAAAAAAAAAAAAAAAAAA7N1rr1/XcSforyL4VRooR3vd9to76Kihjto9
    I8T2TDvAzFuaPrE1kUiCouxWPv38DyX50nHSniCdyS96bIAUL+d/LnxO7Vq11qr6j//p
    v3/x+Qe/fnr75WevX/3lD9qfHz/44OnVy9e/+OzVL//yB1+9+9sfXj/44Mt3L1794sXn
    r189/eUPvn768gcf/KeP/uNv/uIXr19+9cXTq3cfPF7h1Zd/8evHH/7q3bs3f/Hhh1++
    /NXTFy++/PPXb55ePf7wb1+//eLFu8cv3/7ywy9evP27r9788OXrL968ePfZzz/7/LN3
    X3/Yj+P8wbcv8/rxXt+++otvX+KHX3z28u3rL1//7bvnN/mL13/7t5+9fPr2p+/e4os/
    5f1+8yaffPshv3+Pj4/l3a++e5Ff/1Pv9tdffP7d3/vNmz/lvf3i7YvfPL6AX3z+zTv6
    Email attachment snippet sent from Outlook:
    --_004_A4C6DCEDE4346446A79AFF493D278530FB87FA07MELABCDEXA1airp_
    Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document;
     name="Toilet Usage by Month.docx"
    Content-Description: Toilet Usage by Month.docx
    Content-Dis; filename="Toilet Usage by Month.docx";
     size=76574; creation-date="Thu, 12 Mar 2015 00:41:14 GMT";
     modification-date="Thu, 12 Mar 2015 00:41:14 GMT"
    Content-Transfer-Encoding: base64
    UEsDBBQAAAAIAMJcbEY4Xh4a5nsAAPJtMQARABwAd29yZC9kb2N1bWVudC54bWwgohgAKKAUAAAA
    AAAAAAAAAAAAAAAAAAAAAAAA7N1rr1/XcSforyL4VRooR3vd9to76Kihjto9I8T2TDvAzFuaPrE1
    kUiCouxWPv38DyX50nHSniCdyS96bIAUL+d/LnxO7Vq11qr6j//pv3/x+Qe/fnr75WevX/3lD9qf
    Hz/44OnVy9e/+OzVL//yB1+9+9sfXj/44Mt3L1794sXnr189/eUPvn768gcf/KeP/uNv/uIXr19+
    9cXTq3cfPF7h1Zd/8evHH/7q3bs3f/Hhh1++/NXTFy++/PPXb55ePf7wb1+//eLFu8cv3/7ywy9e
    vP27r9788OXrL968ePfZzz/7/LN3X3/Yj+P8wbcv8/rxXt+++otvX+KHX3z28u3rL1//7bvnN/mL

  • SharePoint 2013 document library, permissions to upload and view shared document only

    SharePoint 2013 document library I want to give access to client where they can upload and view their uploaded document and can see all documents shared with them.
    I have managed to show all document shared with them only by deactivating a feature but now they can't upload any document, If I create a permission set to allow them to upload documents, they will see all other documents as well which are not shared with them.
    Any suggestions?

    Hi Sharaqat, the best way to handle your situation is to have a separate library or site for the client. You could use item level permissions per Thilosh, but fine-grained permissions become a major headache. You could also use web parts and audience
    targeting, but that's not truly secure.
    cameron rautmann
    I am thinking to have a separate document library for client, where they can upload/view/edit etc, we will upload documents in a "secure" library with a column saying this is a private document or public document, if we mark a document public,
    a workflow will move that document to the client's document library. I don't think there would be a problem to move a document from 1 library to another in a workflow.
    That's the easiest solution I have found so far.

  • Connecting a SharePoint 2013 Document Library to Outlook 2010 client

    Good Day,
    Can someone please confirm if you can connect a SharePoint 2013 Document Library to Outlook 2010 client?
    I have seen articles, like the one shown below for Outlook 2013 to SharePoint 2013;
    http://www.sharepointgeoff.com/how-to-connect-a-sharepoint-2013-document-library-to-outlook-2013/
    Please provide a link to documentation to validate what Outlook Office versions will support viewing Document Library from Outlook client from a SharePoint 2013 Document Library.
    Thanks in advance for taking the time to review my request.
    Regards,
    Mark

    Hi Mark,
    Per my understanding, you might want to connect SharePoint 2013 Document Library to Outlook 2010 client application.
    Yes, SharePoint 2013 Document Library can connect to Outlook 2010 client application, the connecting process is similar as what SharePoint 2013 connect to Outlook
    2013 client application does.
    Thanks
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • SharePoint 2013 document library workflow to send emails when document changes

    Hi All,
    Need a email alerts to setup when documents get change in a SharePoint 2013 document library.  Mail should go to all the members in a SharePoint Security group.
    Many Thanks 
    sudesh withanage

    Out of the box , You cannot set alerts for SharePoint group. You may try -
    1- Create a group in active directory, add users to the ADgroup. Add that ADgroup in Sharepoint and configure alert.
    2- You can set up a new user and change their email to that of a distribution list, and then assign the alerts to this user.
    3- You can create a custom workflow/action or event receiver that will send an email to a distibution list or programmatically traverse the SPGroup's members and send them the notification email, whenever an item is added or changed.
    4- You can try this , this was for WSS3 -
    http://advancedalert.codeplex.com/
    5- you can to use SharePoint Designer and create a workflow that send an email to SharePoint group.
    Thanks
    Ganesh Jat [My Blog |
    LinkedIn | Twitter ]
    Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful.

  • Unable to see existing documents in a Custom Sharepoint 2013 Document library while saving a document directly in it using explorer mode

    Hi,
    We have a SharePoint 2013 doc library based on a custom template, which has been migrated from 2010.
    We are unable to see existing documents in a Document library created using this template while saving a document directly in it using explorer mode, However we can save files and even see them in explorer mode, only when we try to save a new document there
    directly, we cant see the old docs.
    All the OOB libraries work fine.
    Below is the normal behavior while saving a file, however nothing comes up when saving on this custom template library

    Solved it myself guys... (Well the major part)
    Got help from here...
    https://www.nothingbutsharepoint.com/sites/devwiki/articles/pages/blank-open-save-dialog-when-browsing-document-library-from-office-clients.aspx
    and
    http://www.sharepointconfig.com/2011/02/vs2010-list-definition-template-missing-file-dialog-view/
    with some tweaks of my own..
    Still working on it because its showing SharePoint 2010 header... And I need 2013 look...

  • Upload file to nested file in SharePoint 2013 document library

    Hi,
    I want to retrieve foders & subfolder from document library and bind it with a dropdownlist.I am able to bind all folder & subfolderto the dropdownlist as below image.
    Now I want upload a file to folder selected in the drop down list.By using the below code I am able to add files in the root folder,but while submitting the file to sub folder it showing "Value does not fall in this range"
     if (item.Title == ddlFolderName.SelectedValue)
                                                    if (item != null)
                                                       SPFolder selfold = lifolder.RootFolder.SubFolders[ddlFolderName.SelectedValue];
                                                   SPFile fFile = selfold.Files.Add(System.IO.Path.GetFileName(FileUpload1.PostedFile.FileName),
    byt);
                                                        fFile.Item.Update();
                                                        fFile.Update();
                                                        lblMsg.Text = "File added";
    }}Please help.Thank you

    Hi Aditi,
    For uploading a file into a nested folder you could consider the following approach:
    ensure the target folder exist using the method provided below
    upload a file using
    SPFileCollection.Add method
    How to ensure a nested Folder exist using SharePoint SSOM
    internal static class SPFolderExtensions
    /// <summary>
    /// Ensure SPFolder
    /// </summary>
    /// <param name="web"></param>
    /// <param name="listTitle"></param>
    /// <param name="folderUrl"></param>
    /// <returns></returns>
    public static SPFolder EnsureFolder(this SPWeb web, string listTitle, string folderUrl)
    if (string.IsNullOrEmpty(folderUrl))
    throw new ArgumentNullException("folderUrl");
    var list = web.Lists.TryGetList(listTitle);
    return CreateFolderInternal(list, list.RootFolder, folderUrl);
    private static SPFolder CreateFolderInternal(SPList list, SPFolder parentFolder, string folderUrl)
    var folderNames = folderUrl.Split(new char[] {'/'}, StringSplitOptions.RemoveEmptyEntries);
    var folderName = folderNames[0];
    var curFolder =
    parentFolder.SubFolders.Cast<SPFolder>().FirstOrDefault( f => System.String.Compare(f.Name, folderName, System.StringComparison.OrdinalIgnoreCase) == 0);
    if (curFolder == null)
    var folderItem = list.Items.Add(parentFolder.ServerRelativeUrl, SPFileSystemObjectType.Folder,
    folderName);
    folderItem.SystemUpdate();
    curFolder = folderItem.Folder;
    if (folderNames.Length > 1)
    var subFolderUrl = string.Join("/", folderNames, 1, folderNames.Length - 1);
    return CreateFolderInternal(list, curFolder, subFolderUrl);
    return curFolder;
    How to create nested Folder using SharePoint SSOM
    internal static class SPFolderExtensions
    /// <summary>
    /// Ensure SPFolder
    /// </summary>
    /// <param name="web"></param>
    /// <param name="listTitle"></param>
    /// <param name="folderUrl"></param>
    /// <returns></returns>
    public static SPFolder CreateFolder(this SPWeb web, string listTitle, string folderUrl)
    if (string.IsNullOrEmpty(folderUrl))
    throw new ArgumentNullException("folderUrl");
    var list = web.Lists.TryGetList(listTitle);
    return CreateFolderInternal(list, list.RootFolder, folderUrl);
    private static SPFolder CreateFolderInternal(SPList list, SPFolder parentFolder, string folderUrl)
    var folderNames = folderUrl.Split(new char[] {'/'}, StringSplitOptions.RemoveEmptyEntries);
    var folderName = folderNames[0];
    var curFolder =
    parentFolder.SubFolders.Cast<SPFolder>()
    .FirstOrDefault(
    f =>
    System.String.Compare(f.Name, folderName, System.StringComparison.OrdinalIgnoreCase) ==
    0);
    if (curFolder == null)
    var folderItem = list.Items.Add(parentFolder.ServerRelativeUrl, SPFileSystemObjectType.Folder,
    folderName);
    folderItem.SystemUpdate();
    curFolder = folderItem.Folder;
    if (folderNames.Length > 1)
    var subFolderUrl = string.Join("/", folderNames, 1, folderNames.Length - 1);
    return CreateFolderInternal(list, curFolder, subFolderUrl);
    return curFolder;
    Key points:
    Ability to create a nested folder(s)
    Existing folders will not be affected
    The following example demonstrates how to ensure the following folder structure exist under
    Documents library and upload a file into it:
    Orders
    |
    A --
    |
    A1
    Example:
    var folder = web.CreateFolder("Documents", "Orders3/Orders A/Orders A1");
    Example: how to upload a file into a nested folder
    var targetFolder = web.EnsureFolder("Documents", "Orders3/A/A1");
    var fileContent = System.IO.File.ReadAllBytes(fileName);
    var fileUrl = Path.GetFileName(fileName);
    targetFolder.Files.Add(fileUrl, fileContent);
    Thanks & Regards
    Indul Hassan
    www.indulhassan.com

  • CSV File upload in SharePoint 2013

    Hi,
    We need to upload the CSV file in document library and need to call the java service in the event receiver and read the uploaded CSV file content and parse it as JSON and pass to the java service. 
    Is there anyway we can compare the already uploaded file content with same file name user trying to upload again with the same content . In case if user changed the some content and trying to upload again, we nee to identify whether the file is really updated
    the content or not. This will avoid the unnecessary java service call. Please let me know the suggestion.
    Thank you,
    Mylamy

    there is no method or properties to compare files.We have do row by row
    using power shell we can do it
    http://blogs.technet.com/b/stefan_stranger/archive/2011/02/08/compare-two-different-csv-files-using-powershell.aspx
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/00ef8b0d-00d9-42fd-9b6a-c6de58b9bd00/using-powershell-to-compare-2-csv-files?forum=winserverpowershell
    other solutions
    http://stackoverflow.com/questions/5154370/compare-two-csv-file-using-in-c-sharp
    http://stackoverflow.com/questions/3458355/c-sharp-comparing-two-csv-files-and-giving-an-output

  • How to create column for attachment in SharePoint 2013 Document Library.

    I've created document Library where user can upload the file while click on Upload option (OOTB).
    Now in this Library I want to create one more column where user can put some comment and attach one more file for reference. 
    For comment I can create "Single line of text" type calumn where user can put some comment but for attachment not sure which type of column I have to create.
    Want to know is there OOTB feature/column available which I can use to Add / create a one more column to upload a document for reference.

    Hi,
    For issue 1, please refer 
    To manage the permissions for a Document Set, you must have at least the Design or Full Control permission level.
    On the Welcome Page for the Document Set, click the Manage tab of the Document Set ribbon, and then click Permissions.
    Do one of the following:
    To change the permission settings for the document library itself, click Manage Parent.
    To stop inheriting permissions from the document library and create unique permissions for this Document Set individually, click Stop Inheriting Permissions.
    To view the specific permissions an individual has, click Check Permissions, and then type the name of the user or group you want to check.
    To inherit permissions from the parent document library (if the Document Set was previously configured to stop inheriting them) click Inherit Permissions.
    For more information about working with permissions, see the links under See Also.
    https://support.office.com/en-in/article/Create-and-manage-Document-Sets-c71d5796-d559-48de-b1b3-42383bdd13ea?ui=en-US&rs=en-IN&ad=IN
    For Issue 2:
    You can create a link in the Quick Launch bar
    http://support.sherweb.com/Faqs/Show/how-to-add-a-link-to-the-quick-launch-toolbar-in-sharepoint-sharepoint-2013
    Please don't forget to mark it answered, if your problem resolved or helpful.

  • How to give link to SharePoint 2013 document library column to open its form?

    Hi All,
    I have Infopath document library form, now i want to give link to a specific column to its own item. How to achieve this? Thanks in advance!

    Hi Sam,
    To make the custom field to act as the Name field in the list view, I recommend to use JSLINK to achieve what you want.
    Below is the code example for the js file:
    (function () {
    var overrideCtx = {};
    overrideCtx.Templates = {};
    overrideCtx.Templates.Fields = {
    'Services': { 'View' : CustomLink }
    SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideCtx);
    function CustomLink(ctx){
    var link = ctx.CurrentItem["FileLeafRef"];
    var value =ctx.CurrentItem["Services"]
    var html="";
    if(value!="")
    {var html= "<a href='"+link+"'>"+value+"</a>";}
    return html;
    After writing the js file, you need to upload the file to SharePoint and then refer to it in the list view web part.
    http://www.learningsharepoint.com/2012/08/03/sharepoint-2013-using-js-link-to-add-javascript-to-listviewdataview-webpart/
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How to open and read Excel Sheet from SharePoint 2013 Document Library using C# Visual Studio 2012

    Hi,
    To achieve these are the steps that I had followed :
    1. Add the document Library path into Central Admin -> Application Mgmt -> Manage Service App -> Excel Service App -> Trusted File Locations
    2. Add Documnet Library link to Trusted Connection Proivder
    3. Open Visual Studio as Run as Administrator
    4.Create an SharePoint 2013 Empty Project.
    5.Add Service Reference : http:\\<server>\_vti_bin/excelservice.asmx
    6.Service added successfully
    7.Create a class file and add the Service Reference namespace
    There is no such class as ExcelService to call. 
    Please let me know if somebody knows how to open the Excel file into C#(2012)  either using ExcelService or any other way to open. I tried old methods of Sharepoint 2010 server but it's not able to access classes.
    Requirement is :
    Need to read the excel sheet  from Document Library and transfer all data into DataTable.
    Please help asap. 

    Hi,
    This is the forum to discuss questions and feedback for Microsoft Office, I'll move your question to the SharePoint 2013 development forum
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/home?forum=sharepointdevelopment
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support

  • Get Document ID based on specific folder in SharePoint 2013 document library

    Hi,
    I have created document library with multiple folders in SharePoint 2013.I have created workflow to assign file name convention like this "attachment name-ID".When i created document in one folder the ID is 1 and when I created document in another
    folder, the Id is 2.
    But my requirement is to create Id based on the folder means if document is not there in the folder then the document id should start from 1 and Id should ends within that folder and in another folder it should start from 1 again
    Any help?
    Thank you.

    In this case you will have to build a custom document id provider, see here:
    http://www.sharepointeurope.com/blog/2013/11/21/how-to-create-a-custom-document-id-provider-with-sharepoint-2013
    Here's code taken from that post that shows the minimal implementation of such a provider:
    using System.IO;
    using Microsoft.Office.DocumentManagement;
    using Microsoft.SharePoint;
    namespace CustomDocumentIDProvider.Components
    class CustomDocumentIDProvider : DocumentIdProvider
    public override string GenerateDocumentId(SPListItem listItem)
    string retParam = "SPDocID-";
    string path = Path.GetRandomFileName();
    path = path.Replace(".", "");
    retParam += path.Substring(0, 8).ToUpper();
    return retParam;
    public override string GetSampleDocumentIdText(SPSite site)
    return "SPDocID-HT7G4SP7";
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

Maybe you are looking for