Curl command from Postman not working. HTTP request works through Postman.
curl --location --request POST 'http://localhost:8080/upload' --form 'file=@/C:/Users/documents/test.txt'
iter.hasNext() returns false instead of true.
Curl command from Postman not working. HTTP request works through Postman.
curl --location --request POST 'http://localhost:8080/upload' --form 'file=@/C:/Users/documents/test.txt'
iter.hasNext() returns false instead of true.
It seems you missed the -F option.
See this answer for example.