Wiki library file name & url

Hi All,
How to get the wiki library file names & url's using c#? Let me know if you have any queries
Regards,
Kumar

Hi,
From your description, my understanding is that you want to get file name and URL in wiki page library with C#.
You could try this code below:
// your site url
using (SPSite site = new SPSite("http://sp/sites/sharepoint2013"))
using (SPWeb web = site.OpenWeb())
// get the document library
SPList docs = web.Lists["pageLibrary"];
foreach (SPFile file in docs.RootFolder.Files)
var url = "http://sp/" + file.ServerRelativeUrl;
var name = file.Name;
Best Regards,
Vincent Han
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]

Similar Messages

  • Sharepoint document library file name column in content database?

    Hi,
    How to get a sharepoint document library file name column in content database?
    Thanks
    Poomani Sankaran

    You're not supposed to develop any solutions accessing the content database directly. It's not supported. Document Library Filename is stored in LeafName column, table: AllDocs.
    2.2.6.1 AllDocs Table
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • Document library: File name with spaces at EOF

    I noticed a strange issue with uploading files with space at end of file (example "ABC  .xlsx"). Such files are allowed to be uploaded for the first time but when the end user (with contribute permission) tries to upload the same file again
    (overwrite) then it uploads the file and goes to the next dialog box where properties for the form is collected (EditForm) and then when user tries to hit save, he gets "Sorry this site is not shared with you" error. The owners (with Full control
    permission) get the error message that the file needs to be renamed. 
    This does not happen with files having proper names. The files are automatically overwritten as expected.
    Is it a SharePoint bug or am I missing something ?

    Hi Prakash,
    When we upload a document which contains spaces at the end of the file name, then SharePoint will trim out the spaces in the Edit Item Form, so the name for this document should be “ABC.xlsx”.
    When we re-upload the document to SharePoint, because of that extra space it sees the filename(ABC  .xlsx) as different to the existing document (ABC.xlsx) so it adds it as a new document.
    And in the edit item form, the space has been trimmed out. Because there is already a document with that filename in the document library, it throws the error.
    So this issue is by design that SharePoint uploads the document first and then edit the properties of the document.
    For more details, please refer to the link below:
    https://discoverlars.wordpress.com/2012/10/27/sharepoint-doesnt-overwrite-a-document-with-the-same-name-but-creates-duplicates/
    Thanks,
    Victoria
    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]
    Victoria Xia
    TechNet Community Support

  • How do I get the library file name for a linked icon?

    Hello,
    Using AW 7.02
    I have a couple of library files, one contains graphics, the
    other audio. I am using a dive routine to run through the icons in
    the a7p file and if it is a sound icon that is "linked", I want to
    make sure that it is linked to the audio library file.
    What I am having a problem with is obtaining the linked
    filename.
    Is there an icon property that contains the linked info? I
    believe that there is, as when I right click on a sound icon which
    is linked to a library file, I noticed that I could select Library
    Links... from the pop up menu, and I found the following data:
    Library Link Name:1.3.1s
    Linked To:1.3.1s
    In Library:lessonAudio.a7l <<<----This is what I am
    interested in getting (if it is lessonGraphics.a7l then I want to
    warn the developer)
    A little test that I did with one audio icon in the flow line
    just prior to the calc contents below:
    T_Str := GetIconContents(IconPrev(IconID)) --
    produced:[[#type:#linkedIcon, #iconID:262168]]
    if T_Str[1, #type] = #linkedIcon then
    T_Str1 := GetIconContents(T_Str[1,#iconID]) --
    produced:[[#type:#sound, #filename:"", #storage:#internal,
    #format:"MP3"]]
    else
    T_Str1 := "Otherwise, something else."
    end if
    #filename above appears not to be the place to look as it may
    contain the actual pathname to the mp3 file, IF that info is still
    available.
    FYI, The audio in the library file is NOT linked externally.
    Thanks
    Mike

    You can figure this out mathematically. ((Library number + 1)
    * 65536) + 7
    will be the first icon number in the library. You can also
    use
    GetLibraryInfo which gives you information on the libraries
    including the
    root icon of each. So your icon 262168 will be in the 3rd
    library returned
    from GetLibraryInfo()
    Mike
    ====================
    Mike Baker
    Adobe Community Expert
    mike-baker at cox dot net
    "MN_Mike" <[email protected]> wrote in
    message
    news:g9s2tg$8a$[email protected]..
    > Hello,
    >
    > Using AW 7.02
    >
    > I have a couple of library files, one contains graphics,
    the other audio.
    I
    > am using a dive routine to run through the icons in the
    a7p file and if it
    is a
    > sound icon that is "linked", I want to make sure that it
    is linked to the
    audio
    > library file.
    What I am having a problem with is obtaining the linked
    > filename.
    >
    > Is there an icon property that contains the linked info?
    I believe that
    there
    > is, as when I right click on a sound icon which is
    linked to a library
    file, I
    > noticed that I could select Library Links... from the
    pop up menu, and I
    found
    > the following data:
    >
    > Library Link Name:1.3.1s
    > Linked To:1.3.1s
    >
    In Library:lessonAudio.a7l <<<----This is what I am
    interested in
    getting
    > (if it is lessonGraphics.a7l then I want to warn the
    developer)
    >
    >
    > A little test that I did with one audio icon in the flow
    line just prior
    to
    > the calc contents below:
    >
    > T_Str := GetIconContents(IconPrev(IconID)) --
    > produced:[[#type:#linkedIcon, #iconID:262168]]
    > if T_Str[1, #type] = #linkedIcon then
    > T_Str1 := GetIconContents(T_Str[1,#iconID]) --
    produced:[[#type:#sound,
    > #filename:"", #storage:#internal, #format:"MP3"]]
    > else
    > T_Str1 := "Otherwise, something else."
    > end if
    >
    > #filename above appears not to be the place to look as
    it may contain the
    > actual pathname to the mp3 file, IF that info is still
    available.
    >
    > FYI, The audio in the library file is NOT linked
    externally.
    >
    >
    > Thanks
    >
    > Mike
    >

  • Adding DVD File to Library - File Name Changes

    When I add a DVD file name to my library, iTunes changes the name of the file. How do I retain the name of the file that is in my iTunes sub-directory?

    According to MacWorld the following terminal commands should restore that behaviour for you:
    *defaults write com.apple.iTunes play-songs-while-importing -bool TRUE*

  • 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

  • Long file name document is not uploading in SharePoint Document library?

    Hi,
    My pdf file name length is more than "90" character. I could not upload this file by using "Open with explorer" option.
    Could any one tell me the way to upload kind of files?
    Thanks & Regards
    Poomani Sankaran

    There is a limitation set by Microsoft on the URL path length of 256 characters, refer - https://technet.microsoft.com/en-in/library/ff919564(v=office.14).aspx
    This restriction is with IE browser and you will not see this in other browsers.

  • Is there any reason not to use spaces in document file names anymore in a document library?

    We are revamping our sharepoint document library file naming conventions. In lots of blogs and tutorials, I have seen over and over the recommendation to use underscores instead of spaces in document file names in sharepoint. Part of this is I think to prevent
    the infamous %20 in URLs pointing to the documents. That doesn't really concern us and we don't generally have file names that approach 256 characters.  We don't want to go the route of having different document names than document titles so we want our
    document names to be a clear and readable as possible. We think that using spaces (and occasionally dashes) in the file names makes them more readable, and sharepoint 2010 seems to be able to search these file name correctly.  An example document file
    name would be "elephants - how to clean elephant cages".
    Has anyone run into a reason to avoid using spaces and dashes in document file names in sharepoint 2010? I don't want to start using spaces and then be sorry I did down the road. Thanks!

    It isn't going to lead to the fall of western civilisation.
    You will get longer and messier URLs for documents but it's very unlikely to cause issues. There have been some bugs in the past where hyphens in particular can be mis-encoded in searches but they only affect a small range of build numbers if memory serves.
    I much prefer using no spaces for document libraries as it makes the starting URLs so much cleaner but that's a style question. For documents unless you've got a very strict document naming standard spaces are common and dashes aren't uncommon.

  • How Can Hide The File Name in URL Using Jsp

    I Want source code for Hiding The File name in url address using jsp.
    for example www.website/login.jsp is view but i want www.website/ only.

    Hi Praveen - how does that DEF would be determined?
    Have a look at the below blog for executing os commands
    SAP XI File Adapter OS Command Line Feature - Process Integration - SCN Wiki
    XI/PI: Command line sample functions
    Is there any problem in using the dynamic file name configuration??
    Message was edited by: Hareesh Gampa

  • ITunes library creation - .itl file name query

    OK, so recent upgrade to Yosemite and of course my iTunes library is screwed up. Well there's a surprise!
    So when I recreate the library - the associated files names are all assigned a random date 2014-07-14.
    I've trashed the files and gone through the laborious task of creating the library again, but each time it keeps assigning the same 2014-07-14 date to the files.
    Any ideas how I get it to create the files with correct date?
    Thanks

    Upgrading iTunes means iTunes updates the library file and before doing so it makes a copy with a date.  It does not use that file and usually it is in a previous iTunes Libraries folder.
    What are the iTunes library files? - http://support.apple.com/kb/HT1660
    More on iTunes library files and what they do - http://en.wikipedia.org/wiki/ITunes#Media_management
    What are all those iTunes files? - http://www.macworld.com/article/139974/2009/04/itunes_files.html
    Where are my iTunes files located? - http://support.apple.com/kb/ht1391
    iTunes 9 [and later]: Understanding iTunes Media Organization - http://support.apple.com/kb/ht3847 - plus supplemental information about organizing to new structure https://discussions.apple.com/message/26404702#26404702
    Image of folder structure and explanation of different iTunes versions (turingtest2 post) - https://discussions.apple.com/docs/DOC-7392 and making an iTunes library portable.

  • How to pass file name as parameter into url: or fo:external-graphic src

    Hello gurus,
    In my rtf I want to dynamically get the name of the image file and display the image in the report. If use hard coded image file name it works but if I try to get the name into a variable and pass that variable it is not working.
    Basically my client is having different logos for each operating unit. in the OA_MEDIA directory there are separate logos for each OU. during run time based on OU name we need to display the corresponding image. If I can get this entire path($OA_MEDIA/logo.jpg') in XML field<?CF_OU_LOGO?> then I'm able to print the logo using url:{CF_OU_LOGO}
    But I'm using seeded data source and I cant modify the data source, I need to handle this in RTF only. I could able to get the file name into a variable but not sure how to pass to url.
    could some one help me on this. I tried the following options
    <fo:external-graphic src="url($ln)" />
    url:{$ln} in web etc...
    here 'ln' is the variable which holds '$OA_MEDIA/logo.jpg'. ln is defined as <xsl:variable name="ln" select=".//CF_OPERATING_UNIT" />
    later I set the values as <?xdoxslt:set_variable($_XDOCTX, 'ln',translate( concat('${OA_MEDIA}/','Logo',.//CF_OPERATING_UNIT,'.jpg'),' ',''))?><?xdoxslt:get_variable($_XDOCTX, 'ln')?>
    thanks,
    Vijay

    Vijay
    What version of EBS is the customer running? I read somewhere that in R12 all of the concurrent parameters are passed to the XMLP template. I have not tried this but if true. You could create a conc program parameter that would hold the location of the image. You could either have the user pick the image or maybe derive it from the other parameter choices.
    Lets assume the token name is DLOGO you can reference that in your template.
    <?param:DLOGO?>
    this needs to be at the top of the template. Then where you need to embed the image just reference the value using
    $DLOGO
    You can embed this in the external graphic field
    As I mentioned I have not tested it yet, hopefully its there, if not there are ways around it. Try it first.
    Tim

  • Display a file name in th URL instead of the procedure name

    Hi ,
    I’ve created a Portlet that would show a word doc stored in a blob when a user clicks on a link. However only the procedure name that downloads the word document from the BLOB appears in the URL but not the actual file name. Is there a way to show the actual file name in the URL instead of the PL/SQL procedure name ??

    Hi Samer_asn,
    I am trying to do exactly what you did.
    Can you tell me how you could retrieve the word doc from blob and show it in a portlet when a user clicks on a link
    Thanks in advance
    Jay

  • Consolidating Library Error: File Name Too Long, But What File?

    I am trying to consolidate my library to put all my music (very unorganized) in one spot so I can back it all up. When I try to consolidate, it takes a second to prepare, then immediately brings up an error window saying "Copying Music Failed. The file name was invalid or too long."
    How do I fix this? I really would like to back up my music!

    Hi, ZeroGravity107.
    This can be a tricky problem to figure out since iTunes doesn't specify what file name is "invalid or too long" and there's no documentation on what determines if a file name is "invalid or too long".
    We had one user report that he was able to use his/her keen eyesight to note the last file that appeared before the error message appeared and it turned out that file was the cause of his/her trouble.
    If your eyesight isn't that keen, I'd suggest concentrating on the file name being too long possibility.
    The entire directory path leading to the file is considered part of the file name so, as an example, iTunes' default settings might place a particular file at C:\Documents and Settings\ user name \My Documents\My Music\iTunes\iTunes Music\artist folder\album folder\whatever.m4a.
    Is the directory path leading to your consolidated location much longer than that?
    polydorus has suggested a way to look over your file names: Assuming your music is currently in the default location, make your way there with Windows Explorer and select List in the View menu menu and see if anything stands out as being unusual.

  • Cannot 'Consolidate Library" : Copying music failed , the file name was too

    Hi,
    I am trying to move all the music library to my new computer ( this is my 3rd time of changing my PC). I tried to consolidate the library... but the message was
    Copying music failed , the file name was invalid or too long"
    I already moved the Itunes to my new pc, but my new Itunes cannot "Relocating my file"
    Please help me

    To find out which file it was, look at where you were
    copying them too and see which was the last file
    copied - and then go back to your source, and go to
    the next one - it should be that one.
    I just wanted to add that I had the same issue (failure to finish copying and "invalid or too long" error msg) and at first didn't see how looking for the last file copied would work since iTunes is copying into folders.
    Duh.
    Reverse sort by date modified (newest folder at the top of the list) then drill down to the folder containing the files being copied. Voila. There was the (missing) culprit, and I knew which file to rename in the source folder.
    Thanks for the kick in the brain pan.
    Sony VAIO PCG-V505ACP Windows XP Pro

  • HT1751 Consolidating ITunes Library Failed - message received: "Copying files failed. The file name was invalid or too long" . Please help - how to i fix this issue?

    I consulted your website for details on how to back up my ITunes Library on my PC-found the article very helpful-I reached step 7 - clicked ok and the following message came up: "Copying files failed. The file name was invalid or too long."  Please can you help and advise what I should do or how to fix this issue.   My pc operating system is Windows 7 Home Basic

    You can select a group of tracks and consolidate from the right-click context menu. You coud try consolidating in batches, say all songs by artists beginning with A, then B, etc, then the other media types, until you can isolate a problem track and then try moving that by hand and fixing the broken link.
    I also have two scripts that could help you, Unconsolidated and ConsolidateByMoving. The first can make a playlist of all unconsolidated tracks, the second can consolidate a selection of tracks by moving them instead of copying.
    tt2

Maybe you are looking for

  • Error with DG4ODBC while setting up connectivity from oracle to IBM iSeries AS400 version V7R1

    Hi, I have Enterprise linux 64-bit hosting Oracle 11gR2 64-bit (11.2.0.1) database.  I have access to IBM iSeries AS400 version V7R1.  I am trying to connect to IBM iSeries from Oracle Database through ODBC connectivity using Database Link.  The foll

  • Find iPod Touch App - Problem Setting up MobileMe

    Hi, I'm trying to set up the Find iPod Touch App. Unfortunately, not sure what "generation" this particular one is (is there an easy way to find out?) I am following the instructions at http://www.apple.com/ipodtouch/find-my-ipodtouch-setup/, and hav

  • How do you configure the AP541N to a network

    I just received the AP541N and need detailed instructions on how to configure and connect it to our network. Thanks

  • Elements 13 on MacBook Pro unusable

    I'm having nothing but problems with Elements 13.  The scroll and zoom functions are completely unusable.  The slightest touch on the trackpad scrolls all the way to the top/bottom of the thumbnails before I can stop it.  Same with the zoom:  it zoom

  • Report Trigger Code in Data Template

    Hello all, I've inserted a report trigger into a data template and created the required function in my database. Everything works as expected. My question is, is there any way to write the report trigger within the data template? Given the choice, I'