[X] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
[X] The issue still exists against the latest master branch of bootstrap-fileinput.
[X] This is not an usage question. I confirm having read the plugin documentation and demos.
[X] This is not a general programming / coding question. (Those should be directed to the webtips Q & A forum).
[X] I have attempted to find the simplest possible steps to reproduce the issue.
[ ] I have included a failing test as a pull request (Optional).
Steps to reproduce the issue
It's not really necessary to reproduce the problem.
Just compare the code of the _createForOfIteratorHelper function in the plugin files:
filetype.js
filetype.min.js
The code is different. The code in filetype.min.js is causing problems for Safari users uploading PDF files.
The code in filetype.js fixes those issues. I'm assuming the filetype.js contains bug fixes and filetype.min.js was never updated to match.
We were getting errors from users uploading PDF files (only PDFs) in Safari. It was working in development but not on production.
When I compared the code of filetype.min.js (used on prod) to filetype.js (used on dev) I found they were different (see function _createForOfIteratorHelper)
On production I copied filetype.js to filetype.min.js and the problem went away, and Safari users were able to upload PDF files again.
Expected behavior and actual behavior
filetype.min.js should be a minified version of filetype.js - the code should match
Prerequisites
master
branch of bootstrap-fileinput.Steps to reproduce the issue
It's not really necessary to reproduce the problem.
Just compare the code of the _createForOfIteratorHelper function in the plugin files:
The code is different. The code in filetype.min.js is causing problems for Safari users uploading PDF files. The code in filetype.js fixes those issues. I'm assuming the filetype.js contains bug fixes and filetype.min.js was never updated to match.
We were getting errors from users uploading PDF files (only PDFs) in Safari. It was working in development but not on production.
When I compared the code of filetype.min.js (used on prod) to filetype.js (used on dev) I found they were different (see function _createForOfIteratorHelper)
On production I copied filetype.js to filetype.min.js and the problem went away, and Safari users were able to upload PDF files again.
Expected behavior and actual behavior
filetype.min.js should be a minified version of filetype.js - the code should match
When I follow those steps, I see...
unminify filetype.min.js and compare!
Environment
Browsers
Operating System
Libraries
Isolating the problem