Topic: File upload plugin audio files issue
devtrix pro asked 1 year ago
I have the file data-mdb-accepted-extensions="audio/*", like this. It only works with .mp3, everything else it posts a null on the server. console.log shows the file's presence in the list. Also when I add .flac, .wav & .mp3, only the .mp3 gets posted. I use Asp.net core 6.0 in the back. For test purposes I just post the files to the server. Any ideas?
As @Michał Duszak wrote before, we are not able to reproduce this issue - therefore no fix has appeared. Check out this snippet sent by @Michał Duszak: https://mdbootstrap.com/snippets/standard/m-duszak/3957022#html-tab-view
There you will find the native file input and our File input plugin + submit button. Put a
.wav file into our plugin and native input then hit submit. In the browser console, you will see two consol.logs with exactly the same results.
If you are able to modify this snippet to reproduce this issue or tell us what is missing here, we will be able to analyze it again. At the moment it looks like this is not a problem with our plugin.
Hello, there are now two aspects for this issue:
First, what should be done after cloning the webpack starter. Readme says that you will have to install your package, whether it's Advanced or Essential. Example for advanced:
npm install git+https://oauth2:ACCESS_TOKEN@git.mdbootstrap.com/mdb/standard/mdb-ui-kit-pro-advanced
Then you can download the mdb src code with
npm run getMDBsrc so that you can edit files in the
mdb catalog and build your custom mdb package with
npm run buildMDB.
Second is that I have tried to reproduce this issue from before including this fix. .flac, .wav and .mp3 files work as expected - I reproduced them in the snippet: https://mdbootstrap.com/snippets/standard/m-duszak/3957022#html-tab-view
You can try uploading files both from default input of file type, and from the MDB File Upload plugin - all the necessary informations are provided in both FileLists. If it works in the snippet, then it means that problems occur in the server-side or in the project's middlewares.
Hello, thank you for your feedback. We will fix this issue as soon as possible.
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Pro
- Premium support: No
- Technology: MDB Standard
- MDB Version: MDB5 4.0.0
- Device: All
- Browser: ALL
- OS: Windows 10
- Provided sample code: No
- Provided link: No