Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. var canvasImage = canvas.toDataURL("image/png");
  2. var blob = {
  3. mainFile: canvasImage,
  4. filename: this.file.name + '_edited',
  5. isWriteable: true,
  6. };
  7.  
  8. postFile(blob) {
  9. var _this = this;
  10. this.filepickerService.store(blob,
  11. {
  12. mimetype: "text/plain",
  13. location: "S3",
  14. path: "muhPath"
  15. container: _this.appConfig.s3Bucket
  16. },
  17. function(new_blob){
  18. console.log(JSON.stringify(new_blob));
  19. }
  20. );
  21. }
  22.  
  23. Cannot store given input: " + input + ". Not a string, file input, DOM File, or FPFile object.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement