Open jamesbarrett95 opened 4 months ago
Issue:
When uploading a .rtf file, the mimeType is returned as application/msword. Could we change this?
As a workaround, I've done the following inside the callback function after a file is added:
if (file.name.toLowerCase().endsWith('.rtf')) { Object.defineProperty(file, 'type', { writable: true, value: 'application/rtf' }); }
Issue:
When uploading a .rtf file, the mimeType is returned as application/msword. Could we change this?
As a workaround, I've done the following inside the callback function after a file is added: