Comments (4)
Was this closed intentionally?
from tus-js-client.
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.
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.
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)
- i try testing from ios error like can help me HOT 2
- supabase tus implementation HOT 4
- MIT License HOT 2
- tus-upload large file not working in Ubuntu nginx server HOT 3
- Switch from HTTPS to HTTP Causes Mixed Content Errors HOT 1
- It's not possible to declare onShouldRetry and fallback to the default behaviour HOT 1
- Failed because: Error: tus: unexpected response while uploading chunk, [...] HOT 12
- define a global maximum concurrent request limit HOT 3
- > net::ERR_UPLOAD_FILE_CHANGED
- TypeError: Cannot read properties of undefined (reading 'Upload') HOT 4
- Base64 Encoding of Metadata Assumes Metadata Value is a UTF8 String (Should It?) HOT 6
- RetryDelays: "Type 'null' is not assignable to type 'number[] | undefined'". But null is acceptable. HOT 2
- Replace Karma test runner
- window is undefined when trying to run in worker file on browser HOT 8
- Duplicate calls to `start` cause duplicate uploads
- Can onSuccess return the file address when the upload is successful? HOT 10
- Provide fallback storage when using tus in Web Workers HOT 3
- Either a Bug or i'm doing something wrong HOT 3
- removeFingerprintOnSuccess not working on multiple files HOT 4
- Decrease browser bundle size HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tus-js-client.