On 2015-Feb-4, at 11:40 , Chirag Aggarwal <[email protected]> wrote:
> Hello, > > I am working on a slide sharing application which lets people upload > presentations and pdfs and shows them in the browser. The website is hosted > on heroku and slides are being uploaded to AWS S3 using CarrierWave gem. > > Link: SlideSquare > > http://slidesquare.herokuapp.com > > Problem: I am using Google Docs viewer to view presentations online right > now, which fails to display .odp and .ppt, .pptx and related file formats. I > have come across DocSplit Gem ( https://github.com/documentcloud/docsplit ) > to extract images from ppt, pptx but unfortunately I have failed to implement > it because Heroku does not allow write access to its system, and images can > hence not be extracted in production. Actually, you can write to a temporary directory on Heroku. You just can't rely on that storage being available past the end of the request. I've relied on this behavior for building PDFs and then delivering them to the browser with a Rails send_file Depending on whether you pull images from PPT only on demand, this might be enough for you. -Rob > > Please describe a suitable way to resolve the problem, while using Heroku. If > not so, please provide good alternatives. > > The website is live here: http://slidesquare.herokuapp.com > Source code: http: https://github.com/chi6rag/SlideSquare > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/ce239e3b-0114-4004-9479-08354591e709%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2F5547E5-AE9D-4D40-9A72-5BFF01EEEFE1%40agileconsultingllc.com. For more options, visit https://groups.google.com/d/optout.

