Whether the uploaded file is blank
# File lib/carrierwave/uploader/proxy.rb, line 11 def blank? file.blank? end
the path where the file is currently located.
# File lib/carrierwave/uploader/proxy.rb, line 20 def current_path file.path if file.respond_to?(:path) end
Returns a string that uniquely identifies the last stored file
uniquely identifies a file
# File lib/carrierwave/uploader/proxy.rb, line 33 def identifier storage.identifier if storage.respond_to?(:identifier) end
Read the contents of the file
contents of the file
# File lib/carrierwave/uploader/proxy.rb, line 44 def read file.read if file.respond_to?(:read) end
Fetches the size of the currently stored/cached file
size of the file
# File lib/carrierwave/uploader/proxy.rb, line 55 def size file.respond_to?(:size) ? file.size : 0 end