Topic: File Upload not working
emailoversight priority asked 2 years ago
Trying to implement file upload through drag n drop but not working. it behaves like a normal input type="file" element. Look and feel are totally different from the component page.
The support forum is dedicated to technical questions.
All questions regarding MDB licensing, products, partnerships, and other non-technical queries - it should be asked directly to email@example.com
I've reached out to you via the email address assigned to your mdbootstrap account.
Adam From MDB
Thanks...but where is the option to purchase plugins provided?...there is no mention of a a file upload plugin being required in the PRO docs??? We were under the impression that we purchased all the functionality in the V5 PRO docs (that we see after logging in)...we are also starting to get a bit annoyed here in relation to the lack of clear documentation and the time that tends to gets wasted implementing your product (BTW this doesn't just seem to be our view based on other forum comments we have read).
Where do I download file-upload.min.css and file-upload.min.js from?
@Hyde I just implemented it in my 3.9.0 project. Please repeat after me, as this is working for me.
file-upload.min.js into your project directory.
2) Link a stylesheet and a script for the plugin. (your paths may differ)
3) Append HTML from the documentation.
<div id="dnd" class="file-upload-wrapper"> <input id="file-upload" type="file" data-mdb-file-upload="file-upload" class="file-upload-input" data-mdb-main-error="Ooops, error here" data-mdb-format-error="Bad file format (correct format ~~~)" /> </div>
4) If it's not initialized, you need to initialize via JS.
5) Nice and smooth drag and drop plugin.
This topic is closed.
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Priority
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 3.9.0
- Device: All
- Browser: All
- OS: All
- Provided sample code: No
- Provided link: No