Skip to content

Error on upload : Unknow command #271

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

Closed
bartolije opened this issue Nov 10, 2016 · 4 comments
Closed

Error on upload : Unknow command #271

bartolije opened this issue Nov 10, 2016 · 4 comments

Comments

@bartolije
Copy link

Issue Type:

Please pick one and delete the rest:

  • Bug Report
Bundle Version:

Master

Summary:

I setup everything, and I can manage file.
When I try to upload something, I got the error "Unknow command"

Web console give me these errors.

Failed to load resource: the server responded with a status of 404 (Not Found) [...]/web/assets/elfinder/dist/js/i18n/elfinder.en.j
and
elfinder.min.js:10 elfinder debug: [error] [] Unknown command.

@helios-ag
Copy link
Owner

Hi @bartolije, have you added this part to composer.json?

{
    "config": {
        "component-dir": "web/assets"
    }
} 

@bartolije
Copy link
Author

Yeah.
I can add image that already are in the folder, but can't upload them without the error

@helios-ag
Copy link
Owner

@bartolije can you post your elfinder configuration (config.yml)?

@bartolije
Copy link
Author

bartolije commented Nov 13, 2016

Hello,

Sure, here it is.

fm_elfinder:
    instances:
        default:
            locale:           "%locale%"
            editor:           ckeditor
            fullscreen:       false
            include_assets:   true
            connector:
                debug:        false
                roots:
                    uploads:
                        driver:           LocalFileSystem
                        path:             assets/uploads
                        upload_allow:     ['image/png', 'image/jpg', 'image/jpeg' 'application/zip', 'application/pdf']
                        upload_deny:      ['all']
                        upload_max_size:  16M

ivory_ck_editor:
    default_config:    base_config
    configs:
        base_config:
            toolbar:                    full
            filebrowserBrowseRoute:     elfinder
            filebrowserBrowseRouteParameters:
                instance: default

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