I am trying to upload javascript file(.js) in my project built with React, Redux, Loopback, Postgres.
I see that I end up getting 'text/javascript' as mime-type(filetype) at the client end and for the same file, I get 'application/javascript' as mime-type in the server.
as the result, my uploads are failing.
[PS: if I put text/javascript in Database as supported mime-types uploads are successful(both from UI and postman)
but uploads fail from UI when I have application/javascript as mimetype in DB. but through POSTMAN it's successful.]
screen shots attached.
Images of JS file mime-types client end
Images of JS file mime-types server end
Help needed.
Thanks in Advance.