torus-digital / torus_cms

An open source serverless content management system and static page generator
http://toruscms.org
MIT License
33 stars 3 forks source link

FIX - optimize the addImage function #35

Open lucaskardo opened 5 years ago

lucaskardo commented 5 years ago

function to add picture to storage is SLOW... need to change it so it encodes the image in base64 and uses a different file upload method listed in the example bellow:

https://aws-amplify.github.io/docs/js/storage#put

lucaskardo commented 5 years ago

function to add picture to storage is SLOW... need to change to something like this:

https://aws-amplify.github.io/docs/js/storage#put

lucaskardo commented 5 years ago

test the speed of the image load function several times. should not pass 30 seconds.

lucaskardo commented 5 years ago

The function is actually not that slow anymore.... still a good idea to add encoding or compression