Closed dsjambekar closed 5 years ago
I guess, the problem is with the endpoint. Have you added the endpoint as mentioned here? Upload Images
I have added it like this - <app-ngx-editor id="question" imageEndPoint="/assets" [placeholder]="'Enter text here...'" [spellcheck]="true" height="200px" >
And in the console, it is able to find the right path.
Okay. Are you trying to upload the image to a local directory?
yes, when running in local, it will upload on local. But I have hosted this app on the firebase, so later I want it to be inside a folder with the same name, on the firebase.
Sorry, It doesn't work that way. The editor expects an actual api to post the data and expects a response from that. Its just a plain api call. You can see that here https://github.com/sibiraj-s/ngx-editor/blob/cfb89028b9bec7eb2118bc1edac77d655c10c63c/src/app/ngx-editor/common/services/command-executor.service.ts#L129
Ok, so the api will receive the image as input and then the api has to save the image to whatever folder I want to save. The api will have to return the image url. Am I right?
Yes, totally correct.
I should have been more clear in the docs regarding this. as this is the third issue related to the same question. Will update the docs.
ok, thanks for the explanation.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in the thread.
I'm submitting a
Description
I am trying to load an image in the editor. It allows me to select image. And then it shows 100% uploaded but it doesn't really upload the image.
I get this following error in the console-
Maybe it is not about your editor. I have to do something on my side but I don't know exactly what to do. What should I do with the json response? Can you please explain?
Version Information
ngx-bootstrap": "^3.0.1", ngx-editor": "^3.3.0", ngx-quill": "^3.6.0"