[Rails] Re: rspec post with file

2011-09-02 Thread 7stud --
pepe wrote in post #1019809: Hi, I am working on a mobile app that sends a post with a file (a picture) embedded in the body of the request. I What does that mean? ALL post requests contain the data in the body of the request. it is not inside a parameter, it is inside of the body.

[Rails] Re: rspec post with file

2011-09-02 Thread pepe
What does that mean?  Are you saying that the html element for the file upload doesn't have a name attribute?  Well, then give it one. There is no HTML element for the file upload The request is built by a cell phone application, not a browser, it has parameter values (e.g.: the file name) but

[Rails] Re: rspec post with file

2011-09-02 Thread Frederick Cheung
On Sep 2, 2:46 pm, pepe p...@betterrpg.com wrote: Hi, I am working on a mobile app that sends a post with a file (a picture) embedded in the body of the request. It is not inside a parameter, it is inside of the body. A simplified example of a curl statement to simulate what the request

[Rails] Re: rspec post with file

2011-09-02 Thread pepe
Thanks a lot Fred, I'll look into that. On Sep 2, 11:38 am, Frederick Cheung frederick.che...@gmail.com wrote: On Sep 2, 2:46 pm, pepe p...@betterrpg.com wrote: Hi, I am working on a mobile app that sends a post with a file (a picture) embedded in the body of the request. It is not