Guest User

Untitled

a guest
Jan 18th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. var blob = new Blob([
  2. "--boundary_" + boundary + 'n'
  3. + "Content-Disposition: form-data; name="entity_content";" + "n"
  4. + "Content-Type: application/json" + "nn"
  5. + JSON.stringify(fields)
  6. + "nn"
  7. + "--boundary_" + boundary + "n"
  8. + "Content-Type: application/octet-stream" + "n"
  9. + "Content-Disposition: form-data; name="" + payloadField
  10. + ""; filename="" + filename + ""nn",
  11. payload,
  12. "nn"
  13. + "--boundary_" + boundary + "--"
  14. ], {type : 'multipart/form-data; boundary="boundary_' + boundary + '"'});
  15.  
  16. var blob = new Blob([
  17. "--boundary_" + boundary + 'n'
  18. + "Content-Disposition: form-data; name="entity_content";" + "n"
  19. + "Content-Type: application/json" + "nn"
  20. + JSON.stringify(fields)
  21. + "nn"
  22. + "--boundary_" + boundary + "n"
  23. + "Content-Type: application/octet-stream" + "n"
  24. + "Content-Disposition: form-data; name="" + payloadField
  25. + ""; filename="" + filename + ""nn",
  26. payload,
  27. "n"
  28. + "--boundary_" + boundary + "--"
  29. ], {type : 'multipart/form-data; boundary="boundary_' + boundary + '"'});
Add Comment
Please, Sign In to add comment