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

Large archive files can' t be uploaded because of false positives in isSafeFile function #20618

Closed
ArtisKrumins opened this issue May 29, 2018 · 4 comments

Comments

@ArtisKrumins
Copy link

ArtisKrumins commented May 29, 2018

Steps to reproduce the issue

Create a large (~20MB) zip files containg pdf or docx.
Allow upload of such files in php settings if needed, remove restrictions to upload zip files.
Try to upload file via administrator/index.php?option=com_media

Expected result

File should be uploaded and if not - more detailed reason why it is not uploaded is welcome.

Actual result

Blocks upload with msg "You have tried to upload file(s) that are not safe."

System information (as much as possible)

Joomla 3.8.7

Additional comments

If archive file is large, there are too many false positives. See screenshot as example.
Changing 'fobidden_ext_in_content' to FALSE in isSafeFile function (InputFilter.php) resolves issue. Perhaps there is better way to achieve this via UI, but could not find one.

@ArtisKrumins
Copy link
Author

Adding scrrenshotscreen shot 2018-05-29 at 17 23 47


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20618.

@Quy
Copy link
Contributor

Quy commented May 29, 2018

Duplicate of #15563?

@ArtisKrumins
Copy link
Author

Yes, looks like the same issue.

@joomla-cms-bot
Copy link

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/20618

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants