Upload documents up to 75MB #1832
Labels
api
Indicates api related issue or feature
blockchain
Indicates blockchain related issue or feature
bug
Something isn't working
frontend
Indicates frontend related issue or feature
storage-service
Indicates storage-service related issue or feature
Milestone
Description 😯
TruBudget currently uploads files in base64 encoded strings. This made sense when files were stored on chain.
However, it is not the most efficient solution:
Encoding and decoding takes processing power and memory.
Base64 encoding increases the filesize by about 33 per cent, which leads to longer transmission times. For more efficient file upload and storage, we can use a method designed for file upload: multipart/form-data.
Standard libraries for it are form-data on FE, fastify-multipart in api and multer in express services.
How to reproduce 🕹
Screenshots 📷
Solution
Your Environment 🌎
The text was updated successfully, but these errors were encountered: