I am testing my RESTFul API, and i would like to know if there is a way to upload a file and json data at the same time.
When i run this command from command line:
curl -v -X POST -d '{"label":"vacations", "date":"2011-01-03"}' -F photo=@"photo.png" http://localhost/album
I get this error:
Warning: You can only select one HTTP request!
Is there really a way to accomplish this?