app/services/hyrax/valkyrie_persist_derivatives.rb in hyrax-5.0.0.rc1 vs app/services/hyrax/valkyrie_persist_derivatives.rb in hyrax-5.0.0.rc2

- old
+ new

@@ -30,10 +30,10 @@ tmpfile.flush raise 'blank file detected' if output.zero? filename = filename(directives) Hyrax.logger.debug "Uploading derivative for FileSet #{file_set.id} as #{filename}" - uploader.upload(io: tmpfile, filename: filename, file_set: file_set, use: file_metadata(directives)) + uploader.upload(io: tmpfile, filename: filename, file_set: file_set, use: file_metadata(directives), mime_type: directives[:mime_type]) end # The filepath will look something like # /app/samvera/hyrax-webapp/derivatives/95/93/tv/12/3-thumbnail.jpeg and # we want to extract the FileSet id, which in this case would be 9593tv123