Help with images and videos

Hi, I’d like to know what is the easiest and best way to save images
and videos (both plural) into a model.

Also I’d like to know how to upload and change those videos and images
with the active admin gem for an admin interface (the admin is the
only one that will access this model).

Thank you,
Rodrigo

Have you considered storing the content outside the database and using
filenames with a path to reference them?

Peter

But how do I do that so that an admin can upload files at the admin
interface? so that this admin doesn’t need to know anything about
programming or that setup.

On Tuesday, October 11, 2011, Peter H. [email protected] wrote:

Have you considered storing the content outside the database and using
filenames with a path to reference them?

only one that will access this model).

Thank you,
Rodrigo


You received this message because you are subscribed to the Google G.
“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] <
[email protected]>.

For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


You received this message because you are subscribed to the Google G.
“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] <
[email protected]>.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

Add a field for the filename in the model object. populate this with the
name of the file uploaded that you’d otherwise put in to the database.

An alternative is to store the files in the database as a blob, but what
if
your database is then full of 20Mb rows?

P

how do i upload that file to amazon s3, for example, using the active
admin
interface? and how do i get that file name?

On Tuesday, October 11, 2011, Peter H. removed_email_add[email protected] wrote:

Add a field for the filename in the model object. populate this with the
name of the file uploaded that you’d otherwise put in to the database.

An alternative is to store the files in the database as a blob, but what
if your database is then full of 20Mb rows?

only one that will access this model).

Thank you,
Rodrigo


You received this message because you are subscribed to the Google G.
“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] <
[email protected]>.

For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


You received this message because you are subscribed to the Google G.
“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] <
[email protected]>.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

I can’t help with that - what do the S3 docs say?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs