Skip to content

Commit

Permalink
Missing mime type
Browse files Browse the repository at this point in the history
  • Loading branch information
picman committed Sep 12, 2024
1 parent 2a7c421 commit 62bfc18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/dmsf_upload_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def commit
uploaded_file[:tempfile_path] = upload.tempfile_path
uploaded_file[:size] = upload.size
uploaded_file[:digest] = upload.digest
uploaded_file[:mime_type] = upload.mime_type
end
commit_files_internal uploaded_files
end
Expand Down
1 change: 1 addition & 0 deletions test/integration/rest_api/dmsf_file_api_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def test_upload_document
assert_response :success
revision = DmsfFileRevision.order(:created_at).last
assert revision.present?
assert_equal 'text/plain', revision.mime_type
end

def test_upload_document_exceeded_attachment_max_size
Expand Down

0 comments on commit 62bfc18

Please sign in to comment.