Giter Site home page Giter Site logo

Base64.isSupported issue about tus-js-client HOT 4 CLOSED

tus avatar tus commented on May 14, 2024
Base64.isSupported issue

from tus-js-client.

Comments (4)

kvz avatar kvz commented on May 14, 2024

Was this closed intentionally?

from tus-js-client.

Acconut avatar Acconut commented on May 14, 2024

Why is Base64.isSupported always set to true

This is not true. The file you linked will only be used when the library is used in a node process. For the browser environment a different definition is relevant: https://github.com/tus/tus-js-client/blob/master/lib/browser/base64.js#L9

a function like encodeMetadata() will always return ""

Could it be that you missed the negation in the if-statement you linked? The enocdeMetadata function will return an empty string if base64 encoding is not supported.

if (!Base64.isSupported) {
     return "";
}

Do these clarifications help with your situation?

from tus-js-client.

olucurious avatar olucurious commented on May 14, 2024

I figure out what I wanted to achieve eventually, the documentation just wasn't straightforward enough. Thanks for the clarifications though.

from tus-js-client.

Acconut avatar Acconut commented on May 14, 2024

It's nice to hear that you figured it out. Would you be so kind and explain what you didn't find in the documentation so we can improve it?

from tus-js-client.

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.