Skip to content

Commit 017137d

Browse files
committed
small tweaks to docs #8740
1 parent 5d1ae86 commit 017137d

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
### File types detection
2+
23
File types are now detected based on the filename when the file has no extension.
34

45
The following filenames are now detected:
56

6-
- Makefile=text/x-makefile
7-
- Snakemake=text/x-snakemake
8-
- Dockerfile=application/x-docker-file
9-
- Vagrantfile=application/x-vagrant-file
7+
- Makefile=text/x-makefile
8+
- Snakemake=text/x-snakemake
9+
- Dockerfile=application/x-docker-file
10+
- Vagrantfile=application/x-vagrant-file
11+
12+
These are defined in `MimeTypeDetectionByFileName.properties`.

doc/sphinx-guides/source/admin/troubleshooting.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ To identify the specific invalid values in the affected datasets, or to check al
146146
Many Files with a File Type of "Unknown", "Application", or "Binary"
147147
--------------------------------------------------------------------
148148

149-
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.
149+
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.
150150

151151
.. _actionlogrecord-trimming:
152152

doc/sphinx-guides/source/api/native-api.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -2071,7 +2071,8 @@ Currently the following methods are used to detect file types:
20712071
20722072
- The file type detected by the browser (or sent via API).
20732073
- JHOVE: http://jhove.openpreservation.org
2074-
- As a last resort the file extension (e.g. ".ipybn") is used, defined in a file called ``MimeTypeDetectionByFileExtension.properties``.
2074+
- The file extension (e.g. ".ipybn") is used, defined in a file called ``MimeTypeDetectionByFileExtension.properties``.
2075+
- The file name (e.g. "Dockerfile") is used, defined in a file called ``MimeTypeDetectionByFileName.properties``.
20752076
20762077
Replacing Files
20772078
~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)