Getting file size of carrierwave upload

Viewed 6231

I am trying to get the file size of a carrierwave upload. I am trying to do things such as:

<%= upload.file.size %>

and

<%= upload.file_size %>

and neither are working. I also ran :methods on my upload and didn't see anything there that would lead me to the file size of the upload. How do I get the file size of the upload?

4 Answers
Related