Closed hlushko-arthur closed 5 months ago
Android, IOS
For unknown reasons, the uploaded file was of type text/plain, which caused an error and the file could not be uploaded
I just added these lines to FileReader.js if(file.type == 'text/plain') { file = new Blob([file], { type: 'text/plain' }); }
if(file.type == 'text/plain') { file = new Blob([file], { type: 'text/plain' }); }
(platform)
(android)
Platforms affected
Android, IOS
Motivation and Context
For unknown reasons, the uploaded file was of type text/plain, which caused an error and the file could not be uploaded
Description
I just added these lines to FileReader.js
if(file.type == 'text/plain') { file = new Blob([file], { type: 'text/plain' }); }
Checklist
(platform)
if this change only applies to one platform (e.g.(android)
)