-
Notifications
You must be signed in to change notification settings - Fork 357
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
How to customize image upload request? #31
Comments
I haven't tried it but the afterInsertImage event could work. From the docs you have the image object and I guess you could take the @xdan, it would be very nice to have an event along the lines of |
Hi here https://xdsoft.net/jodit/doc/types/UploaderOptions/ in latest example you can find getting file from FormData object |
Hi @xdan @dannystyleart is it possible to apply custom url for image upload, i.e i dont want to upload in https://xdsoft.net/jodit/connector/index.php?action=fileUpload instead i want use custom url eg
|
Hello @xdan,
I like this wyswyg editor, it is fast and fullpacked but I can't figure out how to customize the image upload.
The default implementation forces a multipart formdata as request payload and somehow flips rabdomly a get request before the post when using cors.
I have to pass a json object in the request body and inside it the image base64 encoded.
Is there anyway to override the uploader class to use own custom logic?
Im using it wit react and axios as http client. It would be cool to pass a custom uploader class that gets the files.
Thanks in advance
The text was updated successfully, but these errors were encountered: