Skip to content

Commit

Permalink
DROP THIS - test zip ram on ios
Browse files Browse the repository at this point in the history
  • Loading branch information
schlagmichdoch committed Feb 13, 2024
1 parent 290e6af commit 067a40b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions public/scripts/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -1776,9 +1776,9 @@ class FileDigester {

processFileViaMemory() {
// Loads complete file into RAM which might lead to a page crash (Memory limit iOS Safari: ~380 MB)
if (window.iOS && this._totalSize > 250000000) {
alert('File is bigger than 250 MB and might crash the page on iOS. To be able to use a more efficient method use https and avoid private tabs as they have restricted functionality.')
}
// if (window.iOS && this._totalSize > 250000000) {
// alert('File is bigger than 250 MB and might crash the page on iOS. To be able to use a more efficient method use https and avoid private tabs as they have restricted functionality.')
// }
Logger.warn('Big file transfers might exceed the RAM of the receiver. Use a secure context (https) to prevent this.');

const file = new File(this._buffer, this._name, {
Expand Down
2 changes: 1 addition & 1 deletion public/scripts/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,7 @@ class ReceiveFileDialog extends ReceiveDialog {
let zipName = "";
let sendAsZip = false;

const tooBigToZip = window.iOS && this._data.totalSize > 256000000;
const tooBigToZip = false; // window.iOS && this._data.totalSize > 256000000;

if (this._data.files.length > 1 && !tooBigToZip) {
Events.fire('set-progress', {
Expand Down

0 comments on commit 067a40b

Please sign in to comment.