Copy paste from Excel

Posted by: saityoussef-external on 28 January 2020, 10:39 pm EST

  • Posted 28 January 2020, 10:39 pm EST

    Hi Team, i have to copy data from Excel, to SpreadJs sheet and i customized the right click button for "Copy All " so i can get the data, and use it.

    i used navigator Api, it’s working in localhost, but not on HTTP.

    is there any other solution i can use ?

    Thanks

  • Posted 29 January 2020, 5:06 pm EST

    Hi Eddie,

    As mentioned in the following document

    https://developers.google.com/web/updates/2018/03/clipboardapi#security_and_permissions

    navigator.clipboard API is only available for the pages with a secure context, which is why it is not working on HTTP. Please refer to the following doc to read more about the secure context: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts

    is there any other solution i can use ?

    We are sorry but browsers do not allow webapps to access the system clipboard without the user interaction i.e pressing shortcut key for paste, so there is not other way to implement this. navigator.clipboard API was actually developed to address this problem but without using the async clipboard API it is the technical limitation.

    Regards

    Sharad

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels