Re: Download CSV from AWS as file, not text

2016-11-18 Thread thomas . kauffman
Chris, I am new to this. If I have a folder in S3 with several csv files, what path do I specify to read them into R on my desktop? On Thursday, May 5, 2011 at 12:16:02 PM UTC-5, chris wrote: > > Oh boy, not sure what you're doing there... or used to be doing... but to > send data, you use... s

Re: Download CSV from AWS as file, not text

2011-05-09 Thread John McCaffrey
Thanks for posting the conclusion! Posting the resolution only takes a few minutes, but its so helpful for future readers, and those of us just keeping tabs on the thread. Thanks On Fri, May 6, 2011 at 8:31 AM, batate wrote: > Here's the solution for posterity. There were two problems to solve

Re: Download CSV from AWS as file, not text

2011-05-06 Thread batate
Here's the solution for posterity. There were two problems to solve: Recall that I'm using CarrierWave. 1) Heroku allows permissions only to the tmp directory. I needed to specify the cache dir on the attachment uploader. 2) I needed to set content headers for s3. You can specify them when you upl

Re: Download CSV from AWS as file, not text

2011-05-05 Thread Kerri Miller
IIRC S3 likes to send things as "application/octet-stream" if you don't specify the MIME when you upload. -k- On Thu, May 5, 2011 at 10:18 AM, Steve Smith wrote: > When you inspect the headers of the file are you seeing a content type? It > sounds like you need to tell amazon the content-type an

Re: Download CSV from AWS as file, not text

2011-05-05 Thread batate
Yeah...good call. The content type is bogus. How do I force it with carrierwave? Is that in the uploader? On May 5, 12:18 pm, Steve Smith wrote: > When you inspect the headers of the file are you seeing a content type? It > sounds like you need to tell amazon the content-type and set a > conten

Re: Download CSV from AWS as file, not text

2011-05-05 Thread Steve Smith
When you inspect the headers of the file are you seeing a content type? It sounds like you need to tell amazon the content-type and set a content-disposition/filename. I would guess that there is no content type being set and therefore amazon doesn't know to set the headers that force the browser t

Re: Download CSV from AWS as file, not text

2011-05-05 Thread chris
Oh boy, not sure what you're doing there... or used to be doing... but to send data, you use... send_data. http://apidock.com/rails/ActionController/Streaming/send_data But, if you're downloading from S3... you could just, y'know, redirect the user to your s3 bucket/path? -- You received this

Download CSV from AWS as file, not text

2011-05-05 Thread batate
I am uploading reports, via Carrierwave, to Amazon s3, but with protected urls. I'm able to process the upload fine, and I can see the file on Amazon, but it renders as text. I want it to trigger a browser download instead of just render the text. When I was generating the file via a template, I c