Giter VIP home page Giter VIP logo

Comments (2)

lignumaqua avatar lignumaqua commented on July 27, 2024

The latest version of Safari (10.0.1) implements the file() constructor which solves the problem for Safari. Unfortunately IE and Edge have the same issue and have no support for the file() constructor.

The following code may work in IE and Edge - I haven’t tested it in this case, but it's worked for me elsewhere. I don’t have the environment to build this app so am unable to test it fully.:

Replace line 22 in upload.js

var file = new File([content], filename, { type: "application/octet-stream" });

With

var file = new Blob([content], { type: "application/octet-stream" });
file.lastModifiedDate = new Date();
file.name = filename;

Ideally this would only be done if the browser is detected as IE or Edge, or if new File() isn’t valid.

from duetwebcontrol.

chrishamm avatar chrishamm commented on July 27, 2024

Thanks for the work-around, I've just tested it and changed the upload code to use Blob instead of File. These changes will be available once DWC 1.13 has been released.

from duetwebcontrol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.