My response was in addition to John Lynch's response. You may need to come up with a custom XML parsing solution for the short term. In my example, you could put that code in the Photo#process_exif method.

http://www.exif.org/specifications.html

That is going to be a good starting place for writing a custom exif parser.

On Jun 8, 2010, at 11:10 AM, Patrick Crowley wrote:

Patrick, from within your model, you can access the file that was uploaded. It is probably a temporary file on Heroku, but that's OK, since you just need to parse something from it. Here is an example:

Right. I have this working in development, so I'm able to successfully parse EXIF information from photo uploads.

http://pastie.org/996632

It just doesn't work on Heroku, since EXIF ruby gems usually need a third-party library that's not installed on Heroku stacks (and not installable).

-- Patrick


--
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby



---------------------------------------------------------------

Jordan A. Fowler
E-mail: [email protected]
Website: http://www.jordanfowler.com
Phone: (619) 339-6752

--
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby

Reply via email to