Files
2012-02-21 01:15:00 -05:00

1 line
1.3 KiB
JSON

[{"user_id": 7794, "stars": [], "topic_id": 20418, "date_created": 1303248203.031662, "message": "I'm trying to capture the output from a axis camera by uploading to http. Axis shows this perl cgi script as a example of how to save the images. http://www.axis.com/techsup/cam_servers/tech_notes/upload_to_http.htm I'm having trouble porting this to rails. I'm using paperclip to save and process the images, but I'm not sure how to pass the file to paperclip in my controller. How do I do that?", "group_id": 447, "id": 747434}, {"user_id": 8224, "stars": [], "topic_id": 20418, "date_created": 1303478727.4175129, "message": "Try pointing the camera's config url to a controller action that prints out the contents of the params variable. Look for something called attachment or file and that should be it.", "group_id": 447, "id": 781288}, {"user_id": 7794, "stars": [], "topic_id": 20418, "date_created": 1303534899.649585, "message": "Yeah I did that. I actually dove into the Rack source code and discovered that rack only parses form-data and multipart requests. Because it is neither of those (the content type is image/jpeg) The file doesn't get picked up. What I finally did was write some Middleware which grabs env[\"rack.input\"], creates a tempfile with it and adds it to the params hash.", "group_id": 447, "id": 787416}]