How to keep original Uploaded File Name in SharePoint Document Library?

HI,
I have document library. After Uploaded the file in document library. I want to keep the file name in some other filed.
Why because in future i may change the file name in document library so in order to know the original name of the file.
I want to do without any workflow. Is there any other default column like that?
How could i achieve it?
Thanks & Regards
Poomani Sankaran

Hello,
Here is list of operations for file element, and you can save it in library column:
http://social.technet.microsoft.com/wiki/contents/articles/22156.sharepoint-2010-a-complete-list-of-spfile-operations-using-ecma-script.aspx
http://sprider.org/2011/12/13/sharepoint-ecmascript-to-adddeleteupdateget-list-items/
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help

Similar Messages

  • Rename a File in a SharePoint document library through Client object model

    Hi,
    How  to Rename a File in a SharePoint document library through Client object model?
    Thanks
    Poomani Sankaran

    Hi,
    According to your description, you want to rename file in the document library using SharePoint Client Object Model.
    Here is a code snippet works well in my environment for your reference:
    static void Main(string[] args)
    string url = "http://sp2013sps/sites/test/";
    ClientContext clientContext = new ClientContext(url);
    Microsoft.SharePoint.Client.List spList = clientContext.Web.Lists.GetByTitle("Documents");
    clientContext.Load(spList);
    clientContext.ExecuteQuery();
    if (spList != null && spList.ItemCount > 0)
    Microsoft.SharePoint.Client.CamlQuery camlQuery = new CamlQuery();
    camlQuery.ViewXml =@"<View> <Query> <Where><Eq><FieldRef Name='LinkFilenameNoMenu' /><Value Type='Computed'>New Microsoft Word Document.docx </Value></Eq></Where> </Query> <ViewFields><FieldRef Name='Title' /></ViewFields> </View>";
    ListItemCollection listItems = spList.GetItems(camlQuery);
    clientContext.Load(listItems);
    clientContext.ExecuteQuery();
    listItems[0]["Title"] = "word.docx";
    listItems[0]["FileLeafRef"] = "word.docx";
    listItems[0].Update();
    clientContext.ExecuteQuery();
    More information about SharePoint Client Object Model:
    http://msdn.microsoft.com/en-us/library/office/ee537247(v=office.14).aspx
    http://www.codeproject.com/Articles/399156/SharePoint-Client-Object-Model-Introduction
    http://www.learningsharepoint.com/2010/07/12/programmatically-upload-document-using-client-object-model-sharepoint-2010/
    Best regards

  • How to find original image file names in Reader?

    How do I display the original file names of digital images in Reader? I am using Reader 8. In previous versions I used the "Picture Tasks" button in the menu bar to open various dialog boxs that showed the original file names. I am a photographer and clients often order prints using original camera file names. Currently I have to tediously match images between my image browser and Reader placing them side by side. Would be so helpful to display in Reader the original file names. Help anyone? THanks in advance.

    Command-D provides info on the PDF itself but nothing on the image files' metadata. I create PDF docs inside Php CS4 if this is any help. If there is a way in Reader to display all image files' original file names simultaneously please clue me in.

  • How to find list or folder name from SharePoint document URL

    I'm implementing the SharePoint client object model in my VSTO application in .NET framework 4.0(C#).
    Actually we open MS Word files from SharePoint site, we need to create a folder inside the opened documents list/folder and after it we want to upload/add some files to that created folder.
    My problem is that how to get list name/title and folder name of opened document by using the documents URL or Is there an another option to find the list or folder name of opened document.
    Any help will be appreciable.

    In document Library you can get the name of document library directly in URL. for folder name you can try below:
    using System;
    using Microsoft.SharePoint;
    namespace Test
    class ConsoleApp
    static void Main(string[] args)
    using (SPSite site = new SPSite("http://localhost"))
    using (SPWeb web = site.OpenWeb())
    if (web.DoesUserHavePermissions(SPBasePermissions.BrowseDirectories))
    // Get a folder by server-relative URL.
    string url = web.ServerRelativeUrl + "/shared documents/test folder";
    SPFolder folder = web.GetFolder(url);
    try
    // Get the folder's Guid.
    Guid id = folder.UniqueId;
    Console.WriteLine(id);
    // Get a folder by Guid.
    folder = web.GetFolder(id);
    url = folder.ServerRelativeUrl;
    Console.WriteLine(url);
    catch (System.IO.FileNotFoundException ex)
    Console.WriteLine(ex.Message);
    Console.ReadLine();
    http://msdn.microsoft.com/en-us/library/office/ms461676(v=office.15).aspx
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/801d1a06-0c9b-429b-a848-dd6e24de8bb9/sharepoint-webservice-to-get-the-guid-of-the-folder?forum=sharepointdevelopmentlegacy
    You can also try below:
    http://blogs.msdn.com/b/crm/archive/2008/03/28/contextual-sharepoint-document-libraries-and-folders-with-microsoft-dynamics-crm.aspx
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/d2d5d7cf-9bbd-4e0f-a772-ecdce4e6149f/how-to-fetch-document-guid-from-sharepoint-document-library-using-sharepoint-web-service?forum=sharepointdevelopmentlegacy
    http://stackoverflow.com/questions/2107716/how-to-get-guid-of-a-subfolder-in-a-document-library-programmatically

  • How to find out if file contents under some document library SPListItem has changed

    hi,
    I am building a Sync tool which will Sync SharePoint document library to some other service(e.g. FTP). I have added event handlers on the document library for ItemAdded, ItemUpdated etc.. etc.
    Now i have one problem, when ever a file is updated (either custom properties and/or file content) then there is no way to check if its updating of content or custom fields. So everytime i need to upload my file to that FTP location. I want to get some indication
    that this time file content is updated not the custom fields, or file content with custom fields are updated.
    I have checked After and Before properties but its of no use. When ever you rename a file or just open the edit dialogbox and save it without updating any thing, all after and before properties are same :(
    Need some solution for this, any help suggestion is appriciated.
    Syed Shoaib Adil Senior SharePoint Developer Boston, Ma, USA

    Sorry for late reply.
    1st link (storing file hash/MD5) is not a solution for me as i have many Office documents
    2nd link doesnt have nay answers
    Archive Folder is not a solution. How can i find if current item SPFile has content changes?
    I already have my custom fields with each SPListItem. How can i find in itemUpdating/ed that if file content is changed? to make my custom field ture?
    Syed Shoaib Adil Senior SharePoint Developer Boston, Ma, USA

  • How to keep same sender file name for receiver mail attachement

    Hi,
      i am working with File to Mail scanario. There i want to pick a flat file from native file system and then send it as email attachment. Now i am able to send the file but the flat is getting converted as an xml file. is there any method to keep the same sender file name and type for receiver mail attachment. i am not using any mail package. i am using XI payload and keep attachments.
    Thanks in advance.
    -Siva

    Hi,
    Yes,With out using the mail package u can send the Mail Attachments to the receiver side,
    In that case no need of Integration Repository objects.
    Chck this links.
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    /people/community.user/blog/2006/09/07/email-reporting
    /people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    If u dont get ur requirement then let me know ur Mail id i will send u a Doc.
    Regards,
    Phani
    Reward points if Helpful

  • How can i change upload file name?

    hi
    I performed a upload Jsp page by OJSP file access in jdeveloper,and it can upload file!
    but i want to change uplaod file name!
    How can i do?
    Any help will be appreciated!
    Thanks
    Jiawei Zhao

    My questions are
    1) when use oreilly package to do file upload , it looks like i line of code is enough to store the upload file in the
    file direction.
    MultipartRequest multi =
            new MultipartRequest(request, dirName, 10*1024*1024); // 10MB
    why some example still use FileOutputStream?
    outs = new FileOutputStream(UPLOADDIR+fileName); 
        filePart.writeTo(outs); 
       outs.flush(); 
      outs.close();
    2) can I rename the file name when I use oreilly package?

  • How to update file name of SharePoint form library?

    HI All,
    I have a Infopath form library and submitted as "Form-1". Once update and submit, the same form name should change as "Form-1.1" with out duplicating. How to achieve this, thanks in advance!

    Hi Sam, check out the following link. It will get you started. You'll have to customize the way the file is named differently than shown, but you'll get the idea:
    http://claytoncobb.com/2009/06/20/auto-generating-filenames-for-infopath-forms/
    cameron rautmann

  • How to create a managed metadata column in sharepoint document library programmatically

    Hi,
    I want to create a column of type "Managed metadata" in a document library.
    I am new to managed metadata and its basics. So i need to know what it requires to create it. i got this
    1. Create a term set Group.
    2. Create term set.
    3. Create a term.
    I am using sharepoint foundation where "Term Store Management" service is not available.
    I am writing this code for OFFICE 365. So can write a code with prediction, assuming i have basic info required to run my code?
    var termStore = session.TermStores["Managed Metadata"];
    var group = termStore.Groups.GetByName("KB Submission Policy");
    var termSet = group.TermSets["KB"];
    Can write this code with respect to screen shot as follows in my term store 
    Please reply...

    Hi,
    Please check this
    http://community.bamboosolutions.com/blogs/sharepoint-2010/archive/2011/08/03/sharepoint-2010-cookbook-programmatically-create-term-sets-amp-metadata-columns-in-managed-metadata-service.aspx
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Upload a document from a form into a SharePoint document library

    The idea is that I have a form which I want to allow users to upload files into my SharePoint document library. I am just not just what to do after the 'HasFile' Statement. Some small snippets of my code below. I am just not sure how from the fileupload ID
    to get it into my document library. Please provide code.
    <asp:FileUpload ID="FileUpload1" runat="server" />
    <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
    Server side code
    protected void Button1_Click(object sender, EventArgs e)
    if (FileUpload1.HasFile)

    protected
    void
    Button1_Click(object
    sender,
    EventArgs
    e)
       if
    (FileUpload1.HasFile)
            // Assuming you have list current context. Or else get reference to the list instance from the parent SPWeb     var list
    = SPContext.Current.List;
         list.RootFolder.Files.Add(FileUpload1.FileName,
    FileUpload1.FileBytes).Update();

  • Original application file name

    hello,
    is it possible to view original application file name while searching document (attached file name not document name)?
    is it possible.currently i am not using EasyDMS.
    points will be awarded,be sure.
    thx in advance..

    Hi,
    maybe it is possible to create a special classification characteristic which includes the original file name. This file name is normally stored in table DMS_PHIO2FILE. Here you will find the original file path and name.
    You can also use report DMS_KPRO_READ. Here you can also enter document data and you will receive all necessary data on the attached originals as PHIO ID, LOIO ID and filenames.
    Hope this information is usefull and don't forget to reward points
    Best regards,
    Christoph

  • How to upload email from outlook to a sharepoint document library programatically.

    Hi ,
    I have a requirement where I need to create a outlook plugin which will upload selected emails to sharepoint document library. I am able to hold email using by creating the object of outlook.item.  but could n't find a way to upload created com object
    in to sharepoint library.
    I need to use webservice to upload email to the document library.
    can some one please help me with this?
    Thanks.

    Hi,
    Base on the description, you want to upload email from outlook to a sharepoint document library programatically.
    We need to do it using Web Services, there's a purpose built web service here http://cecildt.blogspot.com/2010/10/upload-documents-to-sharepoint-2010.html‎
    for uploading documents.
    The other alternative is using email enabled document libraries
    https://www.nothingbutsharepoint.com/sites/itpro/pages/how-to-setup-mail-enabled-document-libraries-in-sharepoint-2010-part-4.aspx
    Best Regards,
    Linda
    Li

  • How to connect SharePoint Document Library with Local file system?

    Hi
    I have a SharePoint Document library and in my local system i have 3TB files. It is very difficult to upload 3TB files in SharePoint.
    I want a file details in SharePoint Document Library but physical file would be in local.
    While click the file in Document library. The document should open from local.
    Anyone help me on it.
    Thanks & Regards
    Poomani Sankaran

    Hi,
    your requirement doesn't work out-of-the-box as all data uploaded to SharePoint needs to be stored in SQL database. Thus in your case 3 TB of fileshare would need to move to SQL.
    In case you don't want to go this way, there are 3rd party vendors who offer Software like AvePoint Connector. Products like these use SQL RBS (Storage Externalization API) so that files remain in your file system but metadata is kept in SharePoint. If you
    need more information on that, please let me know.
    Regards,
    Dennis

  • How to hide the file name (the bizarre number assigned by the camera) when exporting an image version in aperture from an album. Pl understand I want to keep the file name in the project library version.

    how to hide the file name (the bizarre number assigned by the camera) when exporting an image version in aperture from an album. Pl understand I want to keep the file name in the project library version.

    Within Aperture you have Images, which are constructed on-the-fly from two files (the Master and the Version).  You get an image-format file _only_ when you export an Image.  You select the file name (usually a scheme) when you create an image-format file (that is, when you export).  Look under "Aperture→Presets→File Naming" for built-in Presets.  You can, of course, create your own or customize any provided.
    The Preset is applied to only the file newly created by your "export" command.  It is not applied to the Image in Aperture (unless you rename your Versions or your Masters).

  • How to get uploaded file name and path in BefExportToDat event script

    I would like to get hold of the uploaded file name and full path in the event script "BefExportToDat", as I need to extract values from particular fields. However I have not yet found a way to do this.
    - The input variable "strFile" returns the .Dat file path in the Outbox, to which it is about to export the data. This is no use to me.
    - The API variable RES.PstrFilename is returning nothing
    I am using RES.PstrFilename in the "BefFileImport" event script in a different FDM application and it works fine, however I need to find a way to get this to work in the "BefExportToDat" event script.
    Please let me know how this might be achieved.

    I am looking through the API calls in FDM Workbench, but cannot see the table (tPOVPartitions) you mentioned listed. Is this the correct name? And do I just use the function listed in the object browser to run the query?
    Furthermore (going back to my initial thoughts of using strFile), it appears that although the variable contains the .Dat filename and path, the actual file is non-existent when "BefExportToDat" is executed:
    Error:
    Error: Export failed.
    Detail: File not found.
    This would make sense, but it does make the variable "strFile" a little pointless since one cannot make use of the file in this particular event script. Do you please have any thoughts on this?

Maybe you are looking for

  • Printed Documents crash in RH6

    In RH 6 - opened a Printed Documentation layout. Set the settings to generate a Word document, create one book, retain hyperlinks, and use conditional text exclusions. RH crashed while compiling at the updating stage with a message of "RoboHelp HTML

  • Data Recovery on External Drives

    I have an external LaCie 200GB FireWire 400 drive, the F.A. Porsche one. While unmounting it before a trip I was in a hurry and unplugged the FireWire cable too soon and it came up with the customary message informing me as such. I paid it no mind as

  • URGENT u0096 MM Purchase Order (Implementation Query)

    **URGENT HELP REQUIRED** Dear All, I need some Information/help URGENTLY for a presentation/meeting I will be attending later this week. If a service based company, wants to start implementing Purchase Order Processing (ME21N), however they only want

  • Import button to import recorded tv shows missing?

    I record shows with EyeTV on other networked computers in my house.  I can watch the shows, but I can't import them from one of the other Macs.  When I see the shared shows on that computer there is no import button.  On a third Mac I have recorded s

  • USMT Migration Questions (Should I use two Config files?)

    I am currently running System Center Config Manager at my workplace. We have integrated MDT and are running a UDI on all of our PXE deployments. I have a ton of MDT Task Sequences that use the UDI and I have started looking into USMT. Currently we ar