You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I already have react-dropzone up and running and getting the File properly however when I pass it to our NodeJS server for uploading it gets transformed to an object with only the path property and value remaining for example { path: sample.png } is sent to the NodeJS server and when I try to upload it is saying the type is incorrect. I use a validation library to check if File is passed using yup.
I temporarily removed the validation but it still behaving the same, I use postman to facilitate the upload and it went perfectly. I think the issue is the path is not full and as per research browser will not give you the full path, what is the alternative if I want to send the File from react-dropzone to NodeJS server to facilitate the uploading?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I already have
react-dropzone
up and running and getting theFile
properlyhowever when I pass it to our NodeJS server for uploading it gets transformed to an object with only thepath
property and value remaining for example{ path: sample.png }
is sent to the NodeJS server and when I try to upload it is saying the type is incorrect. I use a validation library to check ifFile
is passed usingyup
.I temporarily removed the validation but it still behaving the same, I use postman to facilitate the upload and it went perfectly. I think the issue is the
path
is not full and as per research browser will not give you the full path, what is the alternative if I want to send theFile
fromreact-dropzone
to NodeJS server to facilitate the uploading?Beta Was this translation helpful? Give feedback.
All reactions