You probably do not want to store the files in public. Store them
somewhere else if you need to protect them with passwords.
You can easily upload them to Amazon's S3 with attachment_fu, just be
sure to set :s3_access to an appropriate value
And you can use send_data with :disposition => 'inline' to send the
data to the user. See 
http://api.rubyonrails.org/classes/ActionController/Streaming.html

On Aug 12, 10:57 am, Siddharth Ravichandran <rails-mailing-
[email protected]> wrote:
> Hi,
>
> I am trying to store mp3 files using theattachment_fuand I have
> managed to store it on the file system and the database as a blob. The
> problem is I dont know if saving it in the public folder of the file
> system is safe and when I store it as an longblob in the database how do
> i send it back to the user as something that can be downloaded.
>
> I apologize if this sounds too silly as I am a newbie and trying to
> build an app which handles large amounts of mp3 files. I am also worried
> about security of storing the music files on the public folder.
>
> I would appreciate any help on this .
>
> Thank you
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to