I'm currently trying to process multiple files from a Vue frontend to a Laravel backend API. I succesfully uploaded a single file. The problem I'm facing at the moment is that I can't find a way to access an array of files in my API.
My form data structure looks like this:
postSingle(data) {
let formData = new FormData();
formData.append('title', data.formInputs.title.value);
formData.append('description', data.formInputs.description.value);
formData.append('audiofiles', data.formInputs.audiofiles.value);
return axios.post(API_URL, formData,
{ headers: authHeader( 'fileUpload' ) });
}
How do I access these audiofiles in the backend via $request?