Menu
  • HOME
  • TAGS

Is it possible to send base64 image to an amazon s3 bucket via ngFileUpload post?

angularjs,canvas,amazon-s3,upload,ng-file-upload

With a lot of research i found out that you can send a blob instead of a file unsing ngFileUpload to s3. I used this library to convert my base64 to a blob, and then passed the generated blob instead of the file in the Upload.upload() file parameter....

Upload file asynchronously with Angular, ng-file-upload using a RESTful API

javascript,php,angularjs,ng-file-upload

Ok, so I finally got this. I did this: Select file and store file in ng-model Validate some stuff Submit main model (The one owning the files I want to upload) Upload file to endpoints /api/myentity/{id}/resumee, /api/myentity/{id}/dni and /api/myentity/{id}/picture. Where {id} is the id of the entity I just created...