Skip to content

Commit

Permalink
small tweaks to docs IQSS#8740
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Jul 20, 2022
1 parent 5d1ae86 commit 017137d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
11 changes: 7 additions & 4 deletions doc/release-notes/8740-file-recognition-based-on-filename.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
### File types detection

File types are now detected based on the filename when the file has no extension.

The following filenames are now detected:

- Makefile=text/x-makefile
- Snakemake=text/x-snakemake
- Dockerfile=application/x-docker-file
- Vagrantfile=application/x-vagrant-file
- Makefile=text/x-makefile
- Snakemake=text/x-snakemake
- Dockerfile=application/x-docker-file
- Vagrantfile=application/x-vagrant-file

These are defined in `MimeTypeDetectionByFileName.properties`.
2 changes: 1 addition & 1 deletion doc/sphinx-guides/source/admin/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ To identify the specific invalid values in the affected datasets, or to check al
Many Files with a File Type of "Unknown", "Application", or "Binary"
--------------------------------------------------------------------

From the home page of a Dataverse installation you can get a count of files by file type by clicking "Files" and then scrolling down to "File Type". If you see a lot of files that are "Unknown", "Application", or "Binary" you can have the Dataverse installation attempt to redetect the file type by using the :ref:`Redetect File Type <redetect-file-type>` API endpoint.
From the home page of a Dataverse installation you can get a count of files by file type by clicking "Files" and then scrolling down to "File Type". If you see a lot of files that are "Unknown", "Application", or "Binary" you can have the Dataverse installation attempt to redetect the file type by using the :ref:`Redetect File Type <redetect-file-type>` API endpoint.

.. _actionlogrecord-trimming:

Expand Down
3 changes: 2 additions & 1 deletion doc/sphinx-guides/source/api/native-api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2071,7 +2071,8 @@ Currently the following methods are used to detect file types:
- The file type detected by the browser (or sent via API).
- JHOVE: http://jhove.openpreservation.org
- As a last resort the file extension (e.g. ".ipybn") is used, defined in a file called ``MimeTypeDetectionByFileExtension.properties``.
- The file extension (e.g. ".ipybn") is used, defined in a file called ``MimeTypeDetectionByFileExtension.properties``.
- The file name (e.g. "Dockerfile") is used, defined in a file called ``MimeTypeDetectionByFileName.properties``.
Replacing Files
~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 017137d

Please sign in to comment.