Replies: 1 comment 5 replies
-
You should do this instead: return json(uploadingFiles.map(...)) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So I am trying to get image saved (uploaded) to local dir (public/img).
This is the code for that
and this is the hook that access it.
There are two things that access this
api route
.Editor js
access the api like this - this does not use theuseFileUpload
hook.this is expected return for
imageTool
Now
react-dropzone
component looks like this-Problem is the file is beign uploaded to the desired folder. But I do not get back the url to any of the two components.
Editor js
image-tool "sorry could not upload file" andreact-dropzone
component gets no image. What am I doing wrong. Please send help.Beta Was this translation helpful? Give feedback.
All reactions