Are there any good workarounds to the GitHub 100MB file size limit for text files?

Clean and Smudge You can use clean and smudge to compress your file. Normally, this isn’t necessary, since git will compress it internally, but since gitHub is acting weird, it may help. The main commands would be like: git config filter.compress.clean gzip git config filter.compress.smudge gzip -d GitHub will see this as a compressed file, … Read more

Writing large files with Node.js

That’s how I finally did it. The idea behind is to create readable stream implementing ReadStream interface and then use pipe() method to pipe data to writable stream. var fs = require(‘fs’); var writeStream = fs.createWriteStream(‘someFile.txt’, { flags : ‘w’ }); var readStream = new MyReadStream(); readStream.pipe(writeStream); writeStream.on(‘close’, function () { console.log(‘All done!’); }); The … Read more

Large file upload with WebSocket

Use web workers for large files processing instead doing it in main thread and upload chunks of file data using file.slice(). This article helps you to handle large files in workers. change XHR send to Websocket in main thread. //Messages from worker function onmessage(blobOrFile) { ws.send(blobOrFile); } //construct file on server side based on blob … Read more

tech