FIX: Uploads were broken in old Safari (#15391)
Blob.prototype.arrayBuffer is Safari 14 onwards, so we can check to see if this exists and just skip the checksumming if not.
This commit is contained in:
parent
abb57c350d
commit
435562cc70
|
@ -24,6 +24,12 @@ export default class UppyChecksum extends UploadPreProcessorPlugin {
|
|||
);
|
||||
return false;
|
||||
}
|
||||
if (!Blob.prototype.arrayBuffer) {
|
||||
this._consoleWarn(
|
||||
"The required File API is unavailable in this browser."
|
||||
);
|
||||
return false;
|
||||
}
|
||||
if (!this._hasCryptoCipher()) {
|
||||
this._consoleWarn(
|
||||
"The required cipher suite is unavailable in this browser."
|
||||
|
|
Loading…
Reference in New Issue