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

368
Views
How can I read a protected XLSX with JavaScript in the serve?

How can I read a protected XLSX with JavaScript in the serve? I am using a sheets library, the xlsx-populate library doesn't works in the serve.

<html>
      <label for="file-selector">Select a file</label>
      <input type="file" id ="file-selector" required="">
</html>

<script>
const file = document.getElementById("file-selector").files[0];
file.arrayBuffer().then((res) =>{
      let data = new Uint8Array(res); 
      let workbook = XLSX.read(data,{password:"",type:"array"}); 
    
      let first_sheet_name = workbook.SheetNames[0];  
      let worksheet = workbook.Sheets[first_sheet_name]
      let jsonData = XLSX.utils.sheet_to_json(worksheet,{raw:true});
</script>

Error: File is password-protected

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!