lib/active_fedora/base.rb in active-fedora-3.1.0.rc1 vs lib/active_fedora/base.rb in active-fedora-3.1.0.rc2

- old
+ new

@@ -575,10 +575,10 @@ if blob if !ds.mimeType.present? ##TODO, this is all done by rubydora -- remove ds.mimeType = blob.respond_to?(:content_type) ? blob.content_type : "application/octet-stream" end - if !ds.dsLabel.present? + if !ds.dsLabel.present? && blob.respond_to?(:path) ds.dsLabel = File.basename(blob.path) # ds.dsLabel = blob.original_filename end end