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

212
Views
How to open an uploaded PDF-file using Vue.js

I have a vue.js code to upload and delete files:

export default {
    name: "FileUpload",
    methods: {
        addFile() {
            if (this.multiple) {
                let files = _.concat(
                    this.files,
                    Array.from(this.$refs[this.label].files)
                );
                this.$emit("update:files", files);
            } else {
                this.$emit("update:file", this.$refs[this.label].files[0]);
            }
        },
        removeFile(idx) {
            if (this.multiple) {
                _.pullAt(this.files, [idx]);
                this.$emit("update:files", this.files);
            } else {
                this.$emit("update:file", null);
            }
        },
    }
}

What should I add to have the possibility to open uploaded files directly in the browser?

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!