OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
638 stars 92 forks source link

Issue with folder upload when webkitdirectory enabeld in word add-in #4322

Open aibek-draftwise opened 1 month ago

aibek-draftwise commented 1 month ago

Provide required information needed to triage your issue

Word add-in does not allow users to select folders for upload when webkitdirectory and directory attributes of the input field are defined. Check it on Chrome, Edge, Safari, Edge browsers all are working fine except in add-in it does not work.

Your Environment

Expected behavior

Expected folder upload functionality to work

Current behavior

No folder is being selectable, only files are selectable

Steps to reproduce

We are using similar code in React:

<input
          type="file"
          directory=""
          webkitdirectory=""
/>

Click onto the button and notice that folders are not selectable in add-in though in browser it is selectable.

Link to live example(s)




Provide additional details

upload folder err

Context

Useful logs

Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.

microsoft-github-policy-service[bot] commented 1 month ago

Thank you for letting us know about this issue. We will take a look shortly. Thanks.

shanshanzheng-dev commented 1 week ago

Hi @aibek-draftwise, thanks for reporting the issue. if the issue still persists, could you share us the manifest and the repro steps? Thanks!

shanshanzheng-dev commented 1 week ago

Hi @croicu, I'm triaging this issue, seems like this is a add-in platform(webview) issue on Mac. Could you please help confirm this issue? Thanks.