Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't upload xlsx file #2265

Closed
sdecalom opened this issue Jun 29, 2022 · 0 comments · Fixed by #2266
Closed

Can't upload xlsx file #2265

sdecalom opened this issue Jun 29, 2022 · 0 comments · Fixed by #2266

Comments

@sdecalom
Copy link
Contributor

sdecalom commented Jun 29, 2022

Preconditions (*)

1.OpenMage 19.4.15 and earlier and also 20.0.14 and earlier

Steps to reproduce (*)

  1. When you use Mage_Uploader_Helper_File class
  2. The $_mimeTypes variable have all mime-type of different type file
  3. But for xlsx type, we don't have the mime-type in the variable

$uploader = new Mage_Core_Model_File_Uploader();
$uploader->setValidMimeTypes(Mage::helper('uploader/file')->getMimeTypesByExtensions("xlsx"));

Expected result (*)

  1. File loaded successfully

Actual result (*)

  1. Show popup box with this message Invalid MIME type.
@sdecalom sdecalom added the bug label Jun 29, 2022
sdecalom added a commit to sdecalom/magento-lts that referenced this issue Jun 29, 2022
Can upload xlsx file for issue OpenMage#2265
@sdecalom sdecalom mentioned this issue Jun 29, 2022
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants