<oj-file-picker> Component Does Not Handle MIME Types Consistently Across Browsers
(Doc ID 2873090.1)
Last updated on JANUARY 06, 2023
Applies to:
Visual Builder Studio - Version 21.01 and laterInformation in this document applies to any platform.
Symptoms
A Visual builder Cloud Service (VBCS) application has a page with the following code
The page has simply a <oj-file-picker> component that is used to upload a Comma Separated Values (CSV) file and to print out its details, like the Multipurpose Internet Mail Extensions (MIME) file type.
ACTUAL BEHAVIOR
---------------------------
When uploading a CSV file the MIME file type is recognized differently by different browsers when using the above code in a VBCS application.
Specifically, what is observed is that in Chrome browser the CSV file is recognized as "text/csv" MIME type, while in Mozilla browser it is recognized as "application/vnd.ms-excel" MIME type.
This causes issues if the file contents and its MIME type are used to invoke a REpresentational State Transfer (REST) endpoint expecting a specific MIME type rather than the other for a CSV file.
EXPECTED BEHAVIOR
---------------------------
The determined MIME type should be consistent across browsers when invoking a REST endpoint from a VBCS application.
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |