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 have tried both req.files & req.file and both are undefined. So I inspected the whol req object and I could not find ANY data related to the image I have uploaded.
So I'm probably doing something wrong, but I can't seem to figure out what. I saw someone else's issue and they solved it by adding a name&id to the so I tried that without success.
So if you could spot something I am doing wrong or send me in the right direction that would be awesome. I really like your directive and would hate to have to switch to another one.
Thanks in advance,
Nick Verheijen
The text was updated successfully, but these errors were encountered:
Monitor the network or put some console log to make sure the file variable is not empty and the file content is being sent over to the server.
If the file is being sent then it would be nodejs express specific question which you could ask on nodejs/express forum or stackoverflow as well. There is not much difference in terms of request content/headers between the post request being sent by plugin and a regular old fashion form submit with input file.
Hello, I am trying to implement your module but I am encountering a problem; there is no data being sent to my backend. (node.js + express.js)
This is my HTML:
I have the following code in my controller:
And on the backend I have this route:
I have tried both req.files & req.file and both are undefined. So I inspected the whol req object and I could not find ANY data related to the image I have uploaded.
So I'm probably doing something wrong, but I can't seem to figure out what. I saw someone else's issue and they solved it by adding a name&id to the so I tried that without success.
So if you could spot something I am doing wrong or send me in the right direction that would be awesome. I really like your directive and would hate to have to switch to another one.
Thanks in advance,
Nick Verheijen
The text was updated successfully, but these errors were encountered: