flamethrower icon indicating copy to clipboard operation
flamethrower copied to clipboard

Messages with type "UploadMessage" should get translated to a URL

Open blakesmith opened this issue 13 years ago • 1 comments

Right now in flamethrower, messages with type "UploadMessage" coming from the streaming API get silently dropped. We need to figure out a way to translate these messages into a URL that can be sent to the user so they can still view the URL in a browser.

A JSON message like this:

{"room_id":73541,"created_at":"2011/01/12 15:24:25 +0000","body":"Steak.jpeg","id":298466819,"user_id":786985,"type":"UploadMessage"}

Should get translated to this URL:

https://thepoint.campfirenow.com/room/73541/uploads/1711244/Steak.jpeg

Not sure if this is programmatically possible since we don't get the upload id from the JSON message (in this case 1711244). Need to investigate further.

blakesmith avatar Jan 20 '11 20:01 blakesmith

I noticed the same thing (the upload ID isn't in the live stream's message). I e-mailed 37signals support and they confirmed that the only way to get the upload ID or upload URL is to fetch the list of recent uploads (uploads.{json,xml}) and look for the matching creation date and filename. :-(

jwm avatar Dec 23 '12 13:12 jwm