OneDrive/samples

OneDrive FilePicker doesn't show anything in Photos

travelmarx opened this issue ยท 11 comments

Not sure if this is a bug or feature request. Good news: after many days of effort, I got my asp net core web app up and running with PickerV8. (I had been using the previous version for years.) I'm able to run locally and deploy to App Service or Container Apps and everything works in all three environments (local, app service, container apps).

I only use OneDrive FilePicker against personal accounts and do nothing with SharePoint.

My question is when I put what I think are correct params conf to allow picking from "photos", nothing happens, meaning I don't see anything (see screenshot below). Can I use "photos: true"? Is that valid syntax in my situation? I have this:

   const params = {
        sdk: "8.0",
        entry: {
            oneDrive: {
                files: {},
            }
        },
        authentication: {},
        messaging: {
            origin: "http://localhost:3000",
            channelId: "27"
        },
        search: true,
        typesAndSources: {
            mode: "all",
            pivots: {
                oneDrive: true,
                photos: true,
                sharedLibraries: true,
                recent: true,
            },
        },
        selection: {
            mode: "multiple"
        },
    };

I'm expecting to see photos in the image below because when I go to OneDrive there are photos there.

image

Thanks @travelmarx , thought I was going crazy. Can anybody share insight on whether the photos pivot is supported or not in the v8 OneDrive picker? And if so, what might be missing in the configuration shared above? And if not, I add my vote as a feature request. Our application relies heavily on the photos pivot for image centric workflows.

I just found that the file picker will in fact display Photos when refreshed (F5), and only when refreshed. So perhaps this should be filed as a bug.

I am checking with the engineering team on what is expected here. If it is supposed to work or not and as well the F5 behavior is strange. Will also investigate when I have some time.

Checking in on status, any updates? thx

Behavior as of today is Photos will display in right pane. However, selecting one (or more) will not activate the upload button.

JCrew0 commented

Hey @markbeau and @travelmarx, I'm going through and looking at some of the older issues. Did anyone ever address this or did you come up with a solution? If not, I can try to take a look. Thanks!

Still an issue. Specifically, the upload button isn't active after selecting one or more photos. See screenshots. Experience the same across devices. Will check for JavaScript error and update this.

Android phone - edge iPhone - edge

When looking with developer tools (using laptop/edge browser), I see an Error: Resource #285

File picker error

@JCrew0, thanks for checking back. My experience mirrors @travelmarx.

I just noticed that the photo pivot is working again! The Upload button now activates as expected when one or more photos are selected in the picker. Huge thanks to the team for addressing this.

JCrew0 commented

Glad it was fixed! Closing the issue