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

you cannot upload files of this type. #669

Closed
saifulislam18 opened this issue Aug 20, 2018 · 3 comments
Closed

you cannot upload files of this type. #669

saifulislam18 opened this issue Aug 20, 2018 · 3 comments

Comments

@saifulislam18
Copy link

Hello,
can you help me?

i'm using
laravel:5.6,
laravel-filemanager version:~1.8

i cann't upload xls or docx file.

i'm change my lfm setting

'valid_file_mimetypes' => [
'image/jpeg',
'image/pjpeg',
'image/png',
'image/gif',
'image/svg+xml',
'application/pdf',
'application/docx',
'text/plain',
'image/vnd.microsoft.icon',
'image/x-icon',
'application/vnd.ms-excel',
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'application/docx'
],

i also run cache clear command

php artisan route:clear
php artisan config:clear

Can anybody help?

TIA

@ivanmalo
Copy link

i'm also facing the same error and my lfm.php has all the mime types I should need. I can upload .docx, but not .doc.

@saifulislam18
Copy link
Author

for this problem i was modify my public/vendor/laravel-filemanager/js/dropzone.js file.
i removed this line

dictInvalidFileType: "You can't upload files of this type.",

now it works fine for me .

@streamtw
Copy link
Member

Issue solved, closing issue.

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

3 participants