Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: File Upload Plugin not submitting multiple files to server

sharksmedia priority asked 2 years ago


Hello Support Team

Expected behavior
All uploaded files available via $_FILES object server-side.

Actual behavior
When setting data-mdb-multiple="true" no files is submitted to the server when the form containing the file-upload field is submitted.

I have verified that the server is able to recieve multiple files at once using a browser default upload field. (See screenshot)

Running the following code snippet after selecting files, just reveals an empty FileList object.

document.querySelector("#dnd-multiple-files").files

I have also tried setting the 'multiple' attribute manually, but that doesn't help either.

Resources (screenshots, code snippets etc.)
enter image description here

I am currently unable to provide a link to the implementation page, as it is not for public viewing, I can provide access to the site if done so privately.

Can you please assist us in finding out what might be the problem, or provide us with a fix so we can upload multiple files.

Kind Regards
- Allan


sharksmedia priority answered 2 years ago


Hello Grzegorz

Thank you for your response. upgrading the library version worked !

Turns out I had downloaded 'MDB5-Standard-UI-KIT-Pro-Advanced-3.9.0' instead of 'MDB5-Standard-UI-KIT-Pro-Advanced-3.11.0'

Downloading and installing the latter version fixed the issue for me.

Kind Regards
- Allan


Grzegorz Bujański staff answered 2 years ago


This was fixed a while ago: https://mdbootstrap.com/docs/standard/getting-started/changelog/#v3-10-0

Make sure you are using the latest version of the file upload plugin (2.0.1)



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.11.0
  • Device: Mac / PC
  • Browser: Firefox 98.0.1 / Chrome 99.0.484
  • OS: MacOS Monterey 12.0.1
  • Provided sample code: No
  • Provided link: No