mokuro-reader icon indicating copy to clipboard operation
mokuro-reader copied to clipboard

Error uploading files over 2GB in size

Open aquiab opened this issue 9 months ago • 3 comments

Hello, thanks for the reader, i've been using it daily I've been trying to upload zipped files of entire series to the reader, as i'm trying to read them on my tablet and i can only upload files in android, but they fail with this error if they're over 2GB in size, i found a stack overflow thread about it

DOMException: The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired

It also happens when downloading them through gdrive It happened on my android 14 device using kiwi browser, and also when i tried edge canary

aquiab avatar Mar 02 '25 05:03 aquiab

I've resolved this with a rewrite of the uploader, mostly... Larger zips on lower memory or older android version devices will still fail, but it can now process zips that are larger than the device's memory. On my phone with 12GB of RAM I was able to import a >18GB zip.

Of note: It doesn't work in Kiwi, which I'm not too concerned with since that has been discontinued. It does work on the mobile version of Edge canary, Mises, and Firefox, all of which allow extensions. It works in all desktop browsers I've tested.

You can try it out here https://mokuro-reader-tan.vercel.app/ Please report any bugs you find to my fork https://github.com/Gnathonic/mokuro-reader

I'm closing in on being able to PR back into this repo. I made a lot of improvements. The fork as a whole is working well, but I won't PR it back till I'm sure all the features I don't normally use are still in working order.

Gnathonic avatar Mar 02 '25 14:03 Gnathonic

Though, I'd still recommend splitting the volumes up into separate zip/cbz files. The data gets processed faster as multiple smaller archives than it does as one big one. I've made improvements to the google drive side of things as well that'll let you import folders directly into mokuro-reader.

If you'd like to try going that route, check out the export feature on my fork. It's been updated with options relevant to this problem.

Gnathonic avatar Mar 02 '25 14:03 Gnathonic

Though, I'd still recommend splitting the volumes up into separate zip/cbz files. The data gets processed faster as multiple smaller archives than it does as one big one. I've made improvements to the google drive side of things as well that'll let you import folders directly into mokuro-reader.

If you'd like to try going that route, check out the export feature on my fork. It's been updated with options relevant to this problem.

thank you, it does seem to work better on your fork using edge, though the site crashed on me once i tried uploading my fruits basket collection (around 4gb) from gdrive, it didnt crash when i downloaded the file and uploaded it directly, i dont think i can see the devtools on edge so i cant give any more info

in the meantime i'll try splitting them into smaller files, thank you

aquiab avatar Mar 02 '25 16:03 aquiab