Topic: file upload plugin
efilippi priority asked 3 years ago
Hello, I need help on file upload plugin.
Expected behavior get the $_FILES data on my server using the file upload plugin :
<input type="file" class="file-upload-input" name="filesPlugin[]" data-mdb-multiple="true" data-mdb-file-upload="file-upload" />
Actual behavior get nothing but error "4" in $_FILES array
note : when I use the MDB5 standard file inpout, without the plugin, it works
<input class="form-control" type="file" id="formFileMultiple" name="files[]" multiple />
Thank you for your help
Eric
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.4.0
- Device: computer / smartphone
- Browser: Firefox
- OS: Debian
- Provided sample code: No
- Provided link: No
Grzegorz Bujański staff commented 3 years ago
What is error 4? What is the error message? It will be hard for us to recreate this situation because the bug may come from the server and may not be related to our plugin.
efilippi priority commented 3 years ago
Hello,
I wrote a snippet to show you the problem.
2 forms :
1st with file upload plugin => get "First content: undefined" in the alert
2nd with standard file input => get "Second content: [object File]" in the alert
https://mdbootstrap.com/snippets/standard/efilippi/3089320
so we get a file object with standard file input, and nothing with the file upload plugin