diff --git a/app/models/metadata_file.rb b/app/models/metadata_file.rb index f27d7a92..a4cf8d18 100644 --- a/app/models/metadata_file.rb +++ b/app/models/metadata_file.rb @@ -80,8 +80,10 @@ class MetadataFile < MetadataTemplate # Obtiene la ruta absoluta del archivo # - # @return [String] + # @return [String|Nil] def file + return unless value['path'] + if value['path'].is_a? ActionDispatch::Http::UploadedFile value['path'].tempfile.path else