https://www.davidangulo.xyz/posts/attach-base64-file-on-activestorage-rails/
Attach base64 file on ActiveStorage Rails - David Angulo - Software Engineer