-
Notifications
You must be signed in to change notification settings - Fork 541
4813 allow duplicate files #6924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 45 commits
f311312
cfe629d
abcaa3b
ce34432
4743b23
ca7ba78
17869df
34ce725
9b4152c
801d4bb
d1139a9
aa02d34
0cea0da
2997792
121620c
5012eb6
b24b3c2
1182c54
6fb7c93
86294eb
21a2a7f
f82ca33
a323db5
178b6a4
640325c
eec2854
0273d86
fae5dc1
d36c046
847fd62
6eddfc3
954b3b7
0328487
0e90ce8
911cd0e
c8f358f
d8dcb17
a8629f4
2d79816
70820ba
dcf2d73
1b68d11
f1f18a0
e9f24cf
dfe9af5
6af0f3e
117b321
77ad2e3
dab96ab
6e7c3b9
ea85d9f
1ebd566
f64d4c6
40701b9
9fe91e1
6eb7b52
c69ef84
9350502
54011d7
d0f5adc
36a0d76
e9d58aa
77edbb6
14d24f5
60f2750
8a3ed9b
21f98be
0e531ee
7126aaa
5522e5d
2d60309
f87c9d9
0f41e9d
8169a1b
cef57dc
031b253
a4be5eb
46badd3
90edc9e
0e99e15
d0bfd3d
82f9825
57ab613
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| We should note that duplicate files are now allowed, and installations may want to contact people now that this is available. Point to rules in the Guides. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,7 +73,6 @@ You can upload files to a dataset while first creating that dataset. You can als | |
|
|
||
| Certain file types in Dataverse are supported by additional functionality, which can include downloading in different formats, previews, file-level metadata preservation, file-level data citation with UNFs, and exploration through data visualization and analysis. See the :ref:`File Handling <file-handling>` section of this page for more information. | ||
|
|
||
|
|
||
| HTTP Upload | ||
| ----------- | ||
|
|
||
|
|
@@ -147,6 +146,18 @@ File Handling | |
|
|
||
| Certain file types in Dataverse are supported by additional functionality, which can include downloading in different formats, previews, file-level metadata preservation, file-level data citation; and exploration through data visualization and analysis. See the sections below for information about special functionality for specific file types. | ||
|
|
||
| Duplicate Files | ||
| =============== | ||
|
|
||
| Beginning with Dataverse 5.0, the way Dataverse handles duplicate files (filename and checksums) is changing to be more flexible. Specifically: | ||
|
|
||
| - Files with the same checksum can be included in a dataset, even if the files are in the same directory. | ||
| - Files with the same filename can be included in a dataset as long as the files are in different directory. | ||
| - If a user attempts to add a file to a directory where a file already exists with that directory/filename combination, Dataverse will adjust the file path and names by adding "-1" or "-2" as applicable. This change will be visible in the list of files being uploaded. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is it worth being more explicit here about upload vs edit? i.e. related to the next bullet about changing the directory, is also changing the name after upload. (so the suggestion is to add that there, and change add to upload here)
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I made a change to the doc here, please see that it helps to add some clarity. |
||
| - If the directory of a file is edited in such a way that would create a directory/filename combination that already exists, Dataverse will display an error. | ||
| - If a user attempts to replace a file with another file that has the same checksum, an error message will be displayed and the file will not be able to be replaced. | ||
| - If a user attempts to replace a file with a file that has the same checksum as a different file in the dataset, a warning will be displayed. | ||
|
|
||
| File Previews | ||
| ------------- | ||
|
|
||
|
|
@@ -268,7 +279,7 @@ Variable Metadata can be edited directly through an API call (:ref:`API Guide: E | |
| File Path | ||
| --------- | ||
|
|
||
| The File Path metadata field is Dataverse's way of representing a file's location in a folder structure. When a user uploads a .zip file containing a folder structure, Dataverse automatically fills in the File Path information for each file contained in the .zip. If a user downloads the full dataset or a selection of files from it, they will receive a folder structure with each file positioned according to its File Path. | ||
| The File Path metadata field is Dataverse's way of representing a file's location in a folder structure. When a user uploads a .zip file containing a folder structure, Dataverse automatically fills in the File Path information for each file contained in the .zip. If a user downloads the full dataset or a selection of files from it, they will receive a folder structure with each file positioned according to its File Path. Only one file with a given path and name may exist in a dataset. Editing a file to give it the same path and name as another file already existing in the dataset will cause an error. | ||
|
|
||
| A file's File Path can be manually added or edited on the Edit Files page. Changing a file's File Path will change its location in the folder structure that is created when a user downloads the full dataset or a selection of files from it. | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should read "...in different directories."