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

292
Views
I Want to Send Files, According to the File Type in Web Share API (Not Only Just the Image)
    var filesArray = [file];
    if (navigator.canShare && navigator.canShare({ files: filesArray })) {
      navigator
        .share({
          title: "Hello👋",
          text:"My Text" ,
          url: "",
          files: filesArray,
        })
        .then(() => console.log("Successful share"))
        .catch((error) => console.log("Error in sharing", error));
    } else {
      console.log(`system does not support sharing files.`);
    }
  };

I want to send video too. If the filetype is .mp4, then it will be sended as "video.mp4" instead of "image.jpg. Anyone have a clue how to get over it? How to have conditions for that

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!