Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OneDrive FilePicker doesn't show anything in Photos #27

Closed
travelmarx opened this issue Feb 12, 2023 · 11 comments
Closed

OneDrive FilePicker doesn't show anything in Photos #27

travelmarx opened this issue Feb 12, 2023 · 11 comments

Comments

@travelmarx
Copy link

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
Copy link

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
Copy link

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
Copy link
Collaborator

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
Copy link

Checking in on status, any updates? thx

@travelmarx
Copy link
Author

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

@JCrew0
Copy link
Collaborator

JCrew0 commented Jan 3, 2024

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
Copy link
Author

travelmarx commented Jan 5, 2024

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
Copy link
Author

travelmarx commented Jan 5, 2024

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

File picker error

@markbeau
Copy link

markbeau commented Jan 5, 2024

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

@markbeau
Copy link

markbeau commented Feb 2, 2024

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
Copy link
Collaborator

JCrew0 commented Feb 5, 2024

Glad it was fixed! Closing the issue

@JCrew0 JCrew0 closed this as completed Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants