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

Problem with uploading files type *json by module MEDIA #783

Open
LukaszNiziolDWG opened this issue Oct 22, 2020 · 1 comment
Open

Problem with uploading files type *json by module MEDIA #783

LukaszNiziolDWG opened this issue Oct 22, 2020 · 1 comment

Comments

@LukaszNiziolDWG
Copy link

In the configuration of the media module, I added the 'json' type to the 'allowed-type'. Unfortunately, the * .jon files won't be uploaded anyway. Returns an error about an illegal file extension.

How should I define this type of file?

'allowed-types' => '.mp4,.jpg,.png,.pdf,.jpeg,.svg,.xml',

@arturmamedov
Copy link
Contributor

In the configuration of the media module, I added the 'json' type to the 'allowed-type'. Unfortunately, the * .jon files won't be uploaded anyway. Returns an error about an illegal file extension.

How should I define this type of file?

'allowed-types' => '.mp4,.jpg,.png,.pdf,.jpeg,.svg,.xml',

yes you need to add it to allowed-types.
Also be carefoul you have the same config file in Module/Media/Config and in Laravel config/asgard/media and the last one have priority

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

No branches or pull requests

2 participants