Getting List of files of .wmv extension from a library \ folder in sharepoint 2013

I need to get all the files from a particular folder in sharepoint library.
I am using RESTAPI Javascript code as below : 
  var call = jQuery.ajax({
                url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/GetFolderByServerRelativeUrl('" + folderName + "')/Files",
                type: "GET",
                dataType: "json",
                headers: {
                    Accept: "application/json;odata=verbose"
This code retrieves all the files in a particular folder, except files with extension of .wmv.
The count of files retrieved also doesnt include .wmv files.
Can anyone tell me why this is happening.
Thanks

Hi,
As this is not an expected outcome when requesting files of a library, a suggestion is that please create a new library and upload one sample .wmv file to it and send the request
again to see if it is an issue of Document Library.
Feel free to reply with the test result if the issue still exists or there any progress.
Thanks
Patrick Liang
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]
Patrick Liang
TechNet Community Support

Similar Messages

  • How to get list of file names from a directory?

    How to get list of file names from a directory?
    Please help

    In addition, this:
    String filename = files;Should be this:
    String filename = files;
    That's just because he didn't use the "code" tags, so [ i ] made everything following it become italicized.                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Iphoto 9.5.1 will not import videos with .mpg extension from my pictures folder and keep getting a OSStatus error-54. Is there a way I can import such videos to the iphone library?

    iphoto 9.5.1 will not import videos with .mpg extension from my pictures folder and keep getting a OSStatus error-54. Is there a way I can import such videos to the iphone library? Pls help.

    This is what that error means:
    -54
    permErr
    Software lock on file; Not a subscriber [permissions error on file open]
    Download and launch  BatChmod.  Put the videos into a subfolder and drag that folder containing the video files into the Batchmod window.  Make sure you are the owner and have R,W, X access as well as the group.  Everyone will have R only.
    Check the Change ownership and privileges, Unlock and Apply to enclosed boxes and then click on the Apply button.  When done try importing the files again.
    OT

  • More than maximum 5 filtered album lists trying to register. This will fail,Why i am getting this error when i pick video from Photo library.

    I am able to pick 4 videos from the Photo library in my iPhoneAPP but when i try to pick 5th one it throws an error:
    "More than maximum 5 filtered album lists trying to register. This will fail,Why i am getting this error when i pick video from Photo library."

    Hello Tate r Bulic
    I don't have any idea how to remove this error,can i pick more than 5 videos from the photo library...
    If it's then please help me and gimme idea..Thanks

  • Convert files with WMV extension to QuickTime

    Is there a ways to convert video files with wmv extension to quicktime on the ipohne it self, so the video can be played on the iphone?

    No. There are apps that will convert unprotected WMV files on a computer to something that the iPhone can play. Google is your friend to find video conversion software.

  • Get collaboration content (Discussion Board, Blog Posts, Wikki) last view time in SharePoint 2013

    Hi,
    How to get get collaboration content (Discussion Board, Blog Posts, Wikki) last view time in SharePoint 2013. I have tried using SPAudit setting but its not returning
    list item view time. I have enabled the SiteCollection Audit setting for "Opening or downloading documents,
    viewing items in lists, or viewing item properties". I have tried using below code.
    SPSite site = new SPSite(siteURL);
    SPWeb web = site.OpenWeb();
    SPList list = web.Lists[listName];
    SPListItem item = list.GetItemById(itemId);
    SPAudit audit = site.Audit;
    SPAuditQuery query = new SPAuditQuery(site);
    query.RestrictToListItem(item);
    query.AddEventRestriction(SPAuditEventType.View);
    SPAuditEntryCollection coll = audit.GetEntries(query);
    Is there any other way to get last view time in SharePoint
    2013?? or any changes in above code?
    Thanks.

    Hi Patil,
    According to your description, my understanding is that you want to get the last view time of any entities in SharePoint 2013
    How did you do with using Site Collection Audit?
    Below are my testing:
    Click Settings->Site Settings
    Click Site collection audit settings under Site Collection Administration
    On the Audit Log Trimming section, select ‘Yes’ under ‘Automatically trim the audit log for this site?’
    On the Documents and Items section,  select ‘Opening or downloading documents, viewing items in lists, or viewing item properties’
    Click OK
    Click  Audit log reports, click Content viewing under Content Activity Reports
    Then select a location to save a report, click OK
    ‘Operation Completed Successfully’ displayed, and there is a link ‘click here to view the report’, click it.
    Open the report, there were two worksheets in the file. The first one was ‘Audit Data-Table’, it contained the viewing total times. The second one was ‘Report Data 1’, it provided the time when the item was viewed.
    Below is a screenshot about my report.
    Through checking the second worksheet, we can see which items were viewed and the viewed time. Please have a try.
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • What exactly is un-needed from the Library folder?

    I just want to know what exactly is ok to delete and what is not ok to delete from my Library folder. Many things take up a lot of disk space. I know I can delete the printer drivers (2GB)... but I don't know what other stuff is unnecessary. I'm not too skilled when it comes to this kind of stuff so please help me out. I want to clear out as much un-needed stuff as possible. Here are the biggest folders in my Library folder.
    - Application Support folder (3.94GB) [required or not?]
    - Audio folder (2.49GB) [required or not?]
    - Documentation (355.9MB) [required or not?]
    - Receipts (125.4MB) [required or not?]
    Thank you!

    I personally would not start with the Library folder to start trying to make space, unless you really know what you use. Application Support for example, depends on what applications you use or don't use.
    Having said that, you can try this page:
    http://www.ofzenandcomputing.com/zanswers/107
    I've heard others using Monolingual (which they mention) to remove unneccessary language packs with no problem, I'm keeping all mine just in case .

  • Is possible search all the files in one folder and get list all with the same extension.??

    Hi,
    I would like to get, if it is possible, do searching in one determinate folder and get all the files with the same extension, For example, Give the *.pou and get all the files on one list of the files in this folder and sub-folders...
    If it is possible i would like to see any example.
    Thanks a lot, Fonsi.

    Hi Dennis,
    I got your advise, I download the openG (i had problems, and downloading directly and install one to one).
    Ok, i got but i have one problem, which i can't solve. I entry the promt  to search and put the directory to save, later i push 'Do it' and it search the files, show the paths and number, then save in the folder and finally show the window , all ok!.
    The problem is with the target path, when i want use the browse, it doesnt run properly. I want select one carpet, and it demands one file, i dont understand why??, i changed the options browse but it didnt work. Also i would like when i put one path if folder doesnt exist, directly create it and save the files, if exist copy it.
    Thanks for all!. I attached the file in lv 7.1
    Attachments:
    buscar3.vi ‏50 KB
    capture.GIF ‏48 KB

  • Cant get list of files from a folder (even though the folder and files are created with the same app)

    Ok so each character rolled with my app gets saved as an html file in a folder i create on the sdcard called RpgApp
    the code to do this is 
    private async Task saveToHtmlCharacter(string name)
    StorageFolder externalDevices = Windows.Storage.KnownFolders.RemovableDevices;
    StorageFolder sdcard = (await externalDevices.GetFoldersAsync()).FirstOrDefault(); //Windows.Storage.ApplicationData.Current.LocalFolder;
    var dataFolder = await sdcard.CreateFolderAsync("RpgApp",
    CreationCollisionOption.OpenIfExists);
    var file = await dataFolder.CreateFileAsync(name+".html",
    CreationCollisionOption.ReplaceExisting);
    using (StreamWriter writer = new StreamWriter(await file.OpenStreamForWriteAsync()))
    writer.WriteLine("<html><head><title>Character File for " + z.charNameFirst + " " + z.charNameSecond + "</title></head><body>");
    //trimed for the post
    now this as i say works perfectly and i can confirm that the files show up in the "RpgApp"folder
    now the next step is to have the app read the names of each of those html files and create a seperate button for each one named for the filename and with the filename as content (later i will link them up to load the html file they are named for in a webbrowser
    panal)
    here is the code that *should* do that
    private async Task readFiles()
    z.test.Clear();
    StorageFolder externalDevices = Windows.Storage.KnownFolders.RemovableDevices;
    StorageFolder folder = (await externalDevices.GetFolderAsync("RpgApp"));
    IReadOnlyList<StorageFile> fileList = await folder.GetFilesAsync();
    //z.test.Add("dummy");
    foreach (StorageFile file in fileList)
    z.test.Add(file.Name);
    public async void buttonTest()
    await readFiles();
    CoreDispatcher dispatcher = CoreWindow.GetForCurrentThread().Dispatcher;
    await dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
    foreach (string name in z.test)
    Button button1 = new Button();
    button1.Height = 75;
    button1.Content = name;
    button1.Name = name;
    testStackPanal.Children.Add(button1);
    now i say should as what i get is an error of "A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.ni.dll" (2 of them in fact one after another)
    more detailed error is at http://pastebin.com/3hBaZLQ9
    now i went through checking line after line to find the error and line that causes it is:
    StorageFolder folder = (await externalDevices.GetFolderAsync("RpgApp"));
    in the readFiles method
    i checked to make sure the case is right etc and its spot on, that IS the folder name, and remember my app creates that folder and creates the files that are inside that folder (and only files my app creates are in that folder) so it should have access
    im 100% stuck its taken me all day to get the files to save and now i cant get them to list correctly
    I have tested the button creation function with fake list data and that worked fine, as i say the error is when i tell it to look at the folder it created
    all help most greatfully recieved

    this was actually solved for me on another forum thread 
    async Task<bool> continueToReadAllFiles(StorageFolder folder)
    if (folder == null)
    return false;
    if (folder.Name.Equals("RpgApp", StringComparison.CurrentCultureIgnoreCase))
    var files = await folder.GetFilesAsync();
    foreach (var file in files)
    test.Add(file.Name);
    return false;
    var folders = await folder.GetFoldersAsync();
    foreach (var child in folders)
    if (!await continueToReadAllFiles(child))
    return false;
    return true;
    public async void buttonTest()
    test.Clear();
    StorageFolder externalDevices = Windows.Storage.KnownFolders.RemovableDevices;
    var folders = await externalDevices.GetFoldersAsync();
    foreach (var folder in folders)
    if (!await continueToReadAllFiles(folder))
    break;
    //.... commented out
    ...now i say solved this is more a workaround...but it works.
    I would love to know why we cant just scan the RpgApp folder instead of having to scan the whole dc card and disregard all thats not in the RpgApp folder

  • Getting List of Files in OWB

    Hi people,
    Where can I get the list of file objects created under a location in Design Center (OWB)?
    I can get the list of other objects like external tables, tables, cubes, mappings, etc by connecting as repo owner and running:
    select * from wb_rt_warehouse_objects
    I will appreciate your help
    Thanx guys.
    PS: Pray for Haiti

    Check the public design environment views in the API & Scripting Reference. If I recall correctly, there is one called ALL_IV_FILES whcih should give you the details that you need.
    Cheers,
    Mike

  • How to view files with .wmv extensions

    What application do I need to open files with a .wmv extension?  I get emails with attachments with this file extension and Quicktime can't open the file.

    Try downloading the free plug-in Flip4Mac.
    http://www.telestream.net/flip4mac-wmv/overview.htm

  • How do I get an email file attachment, any extension, off of my phone?

    All I want to do is get an email file attachment off of my phone and on to my computer so I can use it.  I don't want to open it on my phone, it could be an AutoCAD file, a programming langauge file, etc.  I want the option to save the attachment to local memory on my phone and then transfer it to my PC via USB.   This worked all the time with my Blackberry, but it seems impossible or extremely difficult with the Apple IOS. The available phone memory would look like a USB stick drive to my PC.  I am at job sites all the time where I do not have internet access from my PC, but I am within the cell network area of coverage so this would be an option.
    I spent almost an hour with Apple Tech support today and they must have thought that I was on drugs asking for such a simple thing.  Apparently, the available phone memory is protected by the IOS so that the PC can't see it or use it.  They said this feature would be all App based.  The key then is finding an App that would allow the email client on the phone to give the user the option to open or save the file to a location that my PC can see. Does anyone know of such an App?   If I can't find a workable solution I may have to go to an Android device.  Thanks.

    So I understand where you are coming from. The best way is to use the cloud. What you need to do is download a program like dropbox, box.net or sugar sync; there are tons of these apps but those 3 are the most widely supported. Once you download it on your device you can then download it onto your computer by going to their respective sites. These will automatically sync your documents over the air when both your computer and phone are connected to the internet. But if you have no internet service on your computer here is what you do; go to itunes and plug in your phone> go over to the APPS tab on the top> scroll to the bottom of the page and it will say file transfer. This will allow you to pull files from those cloud apps even without service and voila you have your files on your computer even without Wi-Fi or hotspots. I hope this helps!
    EDIT; the best app to use file transfer with is good reader because the cloud apps won't sync directly with iTUnes. You will have to pay for it but it will allow you to connect all your cloud services to it and it can edit and view most files. I use it constantly for my work and I wouldn't be able to live without it even if I wasn't using it for file transfer. Sorry I forgot that in my post, this is an necessity to use the file transfer in iTunes.
    Message was edited by: MFS APPLE PRO

  • Why cannot I not open file with .wmv extensions?

    I am not able to open file attachments that have a .wmv extension - I can open power point presentations. Am I missing an app or does Apple simply not recognize these as valid files? It seems to download, but then does not ever open.

    Nevermind, got it, thanks!

  • Get list of files in a directory

    Hello everybody,
    working with Oracle 9.2 I have created a directory and i would like to implement in pl/sql a procedure that return the list of files contained.
    Anybody know the general solution for this matter?
    Thanks in advance

    Tom Kyte has an example:
    Directory List including modify date and times

  • How to retrieve full flash solution from WSP if not than how to retrieve ascx files from Template folder in SharePoint 2013 ?

    How to retrieve ascx file from the Template folder in SharePoint2013
    My issue is, I have WSP only so I changed into zip and got my all web parts and also one dll file after that decrypted dll and got some C# code
    mixing with some system generated code but not ascx file that is for front-end part. So my question is how we can retrieve full flash solution if not, at least ascx files So if we were on SharePoint 2010 we could have got those file from __Template__
    folder but It’s on SharePoint 2013 and not able to get ascx.
    If we can do so, than will be easy to get the task to be done
    Suggestions would highly be appreciated. Thanks in Advance.
    Ashish

    Hi Amit,
    you can not move specific changes from Dev to production.
    but you can follow this process to make your workflow as it is as in Dev:
    Create a new workflow on the new list in Product.
    Create at least one step, one condition and one action in this workflow.
    1. In Dev server open your .xomal file as XML and copy the entire contents.
    2.In Production server Open your .xoml file as XML and Paste the entire contents
    3. repeat this operation for the xoml.rules file
    4.Double click the .xoml file for the new workflow to open the workflow in the Workflow Designer and click Check Workflow to verify no errors and then click Finish to ensure the workflow is saved.
    Whenever you need to make changes apply the same.
    Please Mark Answer and Vote me if it will to resolve your issue

Maybe you are looking for