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
668 stars 95 forks source link

Download Text File Feature Not Working on Mac Desktop for Office Add-in #4681

Open Piyush-IT opened 1 month ago

Piyush-IT commented 1 month ago

We developed an Office Add-in product that includes a feature for downloading text files. This feature works on Windows (both Web and Desktop) and on Mac (Web), but it does not work on Mac Desktop. This is a blocker for our Office Add-in his is blocker for office-addin and use below mentioned approach but not successes.

Attempts to Resolve

  1. using Fileserver,js
  2.     const downloadLink = document.createElement('a');
    
        downloadLink.href = jsonBlobUrl;
        downloadLink.download = filename;
        document.body.appendChild(downloadLink);
        downloadLink.click();

Your Environment

Expected behavior

The text file should download successfully when the download link is clicked on Mac Desktop.

Current behavior

The text file does not download on Mac Desktop. The same functionality works on Windows (Web and Desktop) and Mac (Web).

Steps to reproduce

  1. Create a text file download feature in an Office Add-in.
  2. Test the download functionality on Windows (Web and Desktop) and Mac (Web and Desktop).
  3. Observe that the download does not work on Mac Desktop.
AlexJerabek commented 1 month ago

Hi @Piyush-IT, Thank you for reporting this. @shanshanzheng-dev, could you please investigate?

shanshanzheng-dev commented 1 month ago

Hi @Piyush-IT Thanks for reporting this issue, we're trying to repro your problem, could you provide us your manifest about this add-in? Thanks.

Piyush-IT commented 1 month ago

@shanshanzheng-dev : please find manifest icApps.zip file as below

shanshanzheng-dev commented 1 month ago

Hi @Piyush-IT I try to upload your manifest, but it occur an error. image

Piyush-IT commented 1 month ago

@shanshanzheng-dev : Creative.zip

i want to download the file on MAC desktop , is it possible to download file in MAC desktop ?

if yes , Could you provide the way to download?

Thank you in advance

Piyush-IT commented 1 month ago

any update??

shanshanzheng-dev commented 1 month ago

Hi @Piyush-IT It has been put on our backlog <#9170956>. We unfortunately have no timelines to share at this point. Thanks.