Heroku recommends using Amazon S3 for data storage.
The doco for S3 shows this way to upload data:
def upload_file
@bucket_name = params[:upload][:bucket_name]
file_to_upload = params[:upload][:filename]
if file_to_upload == ''
flash[:notice] = "No upload file specified"
else
base_filename = file_to_upload.original_filename
file_data = file_to_upload.read
content_type = file_to_upload.content_type.chomp
S3Model.put_file(@bucket_name, base_filename, file_data, { 'Content-
Type' => content_type })
flash[:notice] = "Uploaded file '" + base_filename + "'"
end
redirect_to :action => 'list_bucket', :bucket_name => @bucket_name
end
It looks to me like all the data in this case goes through the rails
app.
Am I understanding that right? Isn't that bad? (What bandwidth
limits apply to a heroku app, anyhow? )
Is there a way to arrange so that the data does _not_ go through the
heroku app?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Heroku" 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/heroku?hl=en
-~----------~----~----~----~------~----~------~--~---