OneDrive / samples

Contains samples, scenarios, and guidance for integrating with OneDrive and SharePoint drives, drive items, and files.
MIT License
53 stars 54 forks source link

OneDrive FilePicker doesn't show anything in Photos #27

Closed travelmarx closed 7 months ago

travelmarx commented 1 year ago

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
markbeau commented 1 year ago

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.

markbeau commented 1 year ago

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.

patrick-rodgers commented 1 year ago

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.

markbeau commented 1 year ago

Checking in on status, any updates? thx

travelmarx commented 9 months ago

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

JCrew0 commented 9 months ago

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!

travelmarx commented 9 months ago

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

travelmarx commented 9 months ago

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

File picker error
markbeau commented 9 months ago

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

markbeau commented 8 months ago

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 7 months ago

Glad it was fixed! Closing the issue