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

"Cannot upload file" message #51

Open
esteban89 opened this issue Jun 14, 2020 · 3 comments
Open

"Cannot upload file" message #51

esteban89 opened this issue Jun 14, 2020 · 3 comments

Comments

@esteban89
Copy link

esteban89 commented Jun 14, 2020

Image is appearing temporarily, then a pop message saying "Cannot upload file" appears and when I click "ok" image dissapears.
Image file is copying into data/files and settings are writing to storage/cache/data/files

Any idea what's going on? Been trying to fix it for hours without any luck

I modified connector and added &responseType=json in the end and now I'm not getting a popup message but I'm getting ERR_CONNECTION_REFUSED in the console for the uploaded image

In the logs I'm getting the following error:
[2020-06-14T03:24:00.253143+00:00] CKFinder.WARNING: ErrorException: Since symfony/http-foundation 5.1: The "Symfony\Component\HttpFoundation\JsonResponse::create()" method is deprecated, use "new CKSource\CKFinder\Response\JsonResponse()" instead.

@esteban89 esteban89 changed the title Cannot upload file "Cannot upload file" message Jun 14, 2020
@esteban89
Copy link
Author

Fixed it: for future reference if anyone has this problem: I was getting the image from localhost/ instead of localhost:8000/

@d4rkr3pt0r
Copy link

d4rkr3pt0r commented Nov 28, 2020

Fixed it: for future reference if anyone has this problem: I was getting the image from localhost/ instead of localhost:8000/

This happens when CSRF token in not sending or is invalid because destination URL is wrong (as you said)

@ianOPF
Copy link

ianOPF commented Nov 9, 2022

Fixed it: for future reference if anyone has this problem: I was getting the image from localhost/ instead of localhost:8000/

Could you tell me how to get image from localhost/?

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