Project lin : http://glitch.com/~better-whatsapp
My disk is full and I can’t modify the files.
I somehow managed to empty the server.js file by mistake… But that isn’t the best part of the problem, just gotta use rewind for this one.
I’m working on a project which is basically whatsapp in a browser using quick.db and socket.io (with express, http, and all the rest of course)
Yesterday I added a system which allows users to upload a picture into the json.sqlite database managed by quick.db. The picture arrives in the server as an ArrayBuffer and is sent to the user and decrypted into an Base64 picture data.
The Array Buffer just takes too much place for Glitch to store a lot of them, so the pictures took a lot of disk space and it went full this morning.
I decided to use git console commands to reduce the size yesterday, it worked, but I couldn’t use it this morning as it was showing an error message saying that there wasn’t enough disk space and the project now cannot be modified without reloading the glitch page (not just the project)
Before it was softlocked, I tried deleting the image data using
db.set('variableblablabla', [ ]);
but it was not lowering the disk space… But the pictures were entirely gone.
2 questions :
Is there a way to store efficiently pictures in this type of file ?
Is the a way to unsoftlock the project ?