Ive recently moved my files to amazon S3 storage. There is some functionality to allow an archive of files to be downloaded to a user via delayed job. So basically a project may have 10 documents in 10 different folders in the s3 bucket. What i need to do is zip the files up into one zip file and then send the user a link to download them. Im using https://github.com/qoobaa/s3 and paperclip to manage the file uploads. I cant really see based on the functionality available how i could realistically create this zip archive on the S3 storage bucket. I may have to download the files locally and zip them up on the file system but thats not a great solution and could take forever based on the size of some of these files. Has anyone got any ideas on how best to do this? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Jul 9, 5:59 pm, johnnybutler7 <johnnybutl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Ive recently moved my files to amazon S3 storage. There is some > functionality to allow an archive of files to be downloaded to a user > via delayed job. So basically a project may have 10 documents in 10 > different folders in the s3 bucket. What i need to do is zip the > files up into one zip file and then send the user a link to download > them. Im usinghttps://github.com/qoobaa/s3and paperclip to manage > the file uploads. > > I cant really see based on the functionality available how i could > realistically create this zip archive on the S3 storage bucket. I may > have to download the files locally and zip them up on the file system > but thats not a great solution and could take forever based on the > size of some of these files. Has anyone got any ideas on how best to > do this?I don''t think you''ve got an alternative to transferring the files to your server and zipping them up there Fred -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thought so :( thanks for your reply. On Jul 10, 9:23 am, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Jul 9, 5:59 pm, johnnybutler7 <johnnybutl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Ive recently moved my files to amazon S3 storage. There is some > > functionality to allow an archive of files to be downloaded to a user > > via delayed job. So basically a project may have 10 documents in 10 > > different folders in the s3 bucket. What i need to do is zip the > > files up into one zip file and then send the user a link to download > > them. Im usinghttps://github.com/qoobaa/s3andpaperclip to manage > > the file uploads. > > > I cant really see based on the functionality available how i could > > realistically create this zip archive on the S3 storage bucket. I may > > have to download the files locally and zip them up on the file system > > but thats not a great solution and could take forever based on the > > size of some of these files. Has anyone got any ideas on how best to > > do this? > > I don''t think you''ve got an alternative to transferring the files to > your server and zipping them up there > > Fred-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Possibly Parallel Threads
- nested attributes question
- Problem in accessing bucket of my AWS S3 account
- Missing :bucket option (S3), while it is defined in production initializers.
- DO NOT REPLY [Bug 4693] New: Amazon S3 storage interface for rsync
- Off-site cloud backup (eg Amazon S3, Wasabi)