How to Upload Multiple Files via Ajax (VueJs and Laravel 5.5) — File Management

Adnan Sabanovic
2 min readNov 4, 2017

--

UPDATE: There is a Part 2 of this series with a more complete solution. You can check it here https://medium.com/@adnanxteam/part-2-multiple-file-management-with-laravel-and-vuejs-dc73b9865eda

When I first started using VueJs, it was a nightmare to find a decent tutorial on how to upload a single file using Ajax, let alone a tutorial explaining how to manage multiple files.

Web Hosting Recommendation

Many people have asked me about the hosting I am using. To be honest I tried different hosting accounts from shared, VPS and dedicated. In case you want some really affordable hosting I recommend Bluehost. I am also hosting some of my Laravel projects right there on this $3.95 shared account and it works great.

My recommendation for the best affordable web hosting. Click here to jump right there!

Continue …

I have been dealing a couple of years with file management, mostly using VueJs and Laravel, so I thought writing a tutorial like this could help a lot of developers implement one of the coolest things in applications, which is real-time asset management.

First off, you will find many solutions online that are good but those who are early beginners will definitely struggle.

What I will cover here is writing your frontend and backend code that will allow you to upload multiple files. Additionally, I will give you a few tricks on how to apply this stuff to different situations.

This article will introduce a basic ability to pass multiple files from the UI to your backend. Once you have passed the attachments, they will automatically become UploadedFile object in PHP which are described in Laravel documentation.

Continue reading this EPIC post on AdnanSabanovic.com

--

--

Adnan Sabanovic
Adnan Sabanovic

Written by Adnan Sabanovic

Just a tech guy involved in mastering life using mental and physical discipline. Journaling about productivity, personal development and overall growth. #Life

Responses (6)