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

105
Views
Multiple File Upload VueJS

I am new to VueJS and I was trying to upload multiple pictures. The form looks like this. enter image description here

I am using Vue from CDN on a blade file. The problem is when I click delete, it is not the one clicked which is removed, but the last one. I have noticed that the one clicked is actually removed from the data, but the form doesn't update like that. Any help is appreciated. My code looks like this:

Vue.createApp({
    data() {
        return {
            images: []
        }
    },
    methods: {
        addField(images){
            images.push({});
        },
        removeField(index, images){
            images.splice(index, 1);
        }
    }
}).mount('#picture')

<input id="picture" type="file"
 class="form-control-file{{ $errors->has('picture') ? ' is-invalid' : '' }}"
 name="picture[]" accept="image/*" required>
                                    
 @if ($errors->has('picture'))
 <span class="invalid-feedback" role="alert">
     <strong>{{ $errors->first('picture') }}</strong>
 </span>
 @endif
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!