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

133
Views
plupload decode uploadcomplete resonse

I am trying to decode the plupload response and pull out the value for voucher id I am being thick headed and drawing a blank Any suggestions?

FileUploaded: function(up, file, response) {
                    console.log("UPLOAD COMPLETED!!!")
                    console.log("RESPONSE ",response);
                    console.log(JSON.stringify(response));
                    console.log(jQuery.parseJSON(response));
                },

The response for example is below

{response: '{"OK":1,"info":{"name":"hedge bnackground.jpg","pa…ackground.jpg","size":"185738","voucher_id":"0"}}', status: 200, responseHeaders: 'access-control-allow-origin: *\r\ncache-control: no-…: Apache/2.4.41 (Ubuntu)\r\nvary: Accept-Encoding\r\n'}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

                    FileUploaded: function(up, file, information) {
                    console.log("INFO ",information);
                    let request = information;
                    let data = JSON.parse(request.response)
                    let voucher_id = data.info.voucher_id;

                    console.log(voucher_id);
about 4 years ago · Juan Pablo Isaza Report
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!