Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

300
Views
Upload mp3 audio blob to server php

<script>
const value = ('; '+document.cookie).split(`; theuname=`).pop().split(';')[0];
document.getElementById('mefile').href = value;
document.getElementById('output').src = value;

var xhr = new XMLHttpRequest();
xhr.open('GET', value, true);
xhr.responseType = 'blob';
xhr.onload = function(e) {
  if (this.status == 200) {
    var myBlob = this.response;
    // myBlob is now the blob that the object URL pointed to.
    
    console.log(myBlob);
    

  }
};
xhr.send();


</script>

Using the script above, I am able to generate both blob url and blob object itself from a cookie value from the domain. Now what I need to do is to upload this blob object to a server using php. I have read a lot of similar questions on stackoverflow, github and google but none of them is able to do what I want. What I need is to submit the blob object like an object from input file. Thanks for your help.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!