-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Custom Adapter for upload files #5999
Comments
It seems that we missed this use case somehow, or something changed in the API which makes solving this easily harder now. What I'd do now is implementing an adapter class which will serve as a proxy to two other adapters. It seems to be the simplest option right now. But it's a valid ticket – we should at least document how to do this. |
I don't know if is valid solution.
|
For those interested this is my variation of @felek000's solution above, it uploads the file and inserts an anchor tag if the file is not an image (e.g. PDF), otherwise it just uses whatever file adapter you are currently using with CKeditor, in my case the Simple Upload Adapter for images.
|
A more complete solution, my project includes bootstrap so I've made use of some of components from it, but those can easily be replaced with something else.
|
Is there any progress now? Can I customize multiple upload adapters? |
It would be very nice and useful to have this featured implemented |
Provide a description of the task
I want to upload custom adapter for handle upload files.
And it fires when i upload image files.
Now i want to either edit my adapter to handle example pdf or create custom adapter.
Still in my
UploadDrop
adapter events only works when i upload images.How can i allow adapter works also in other files types ?
Also i try solution to return other adapter.
like found on github:
but loader.file is a promise so that will no work.
Any suggestions how to handle that ?
What steps should be taken to fulfill the task?
📃 Other details
The text was updated successfully, but these errors were encountered: