gdcc / dvwebloader

A web tool for uploading folders of files to a Dataverse dataset
Apache License 2.0
1 stars 8 forks source link

No verification of duplicated files #6

Open Louis-wr opened 1 year ago

Louis-wr commented 1 year ago

Current behavior:

The check regarding file duplication does not trigger when uploading a duplicate of a file with dvwebloader.

Expected behavior :

When uploading a duplicate of a file that is already in the datasets a splash screen should warn the user. image

Reproducing steps :

Upload the same folder twice with dvwebloader to the same dataset.

qqmyers commented 1 year ago

Thanks. This is a good next step. I'd also suggest looking at the whole list of DVUploader options to see if other ones would be useful in dvwebloader.

qqmyers commented 1 year ago

This is ~resolved in the latest code - dvwebloader gets the list of existing files and compares by name and then shows a list of files with checkboxes. Only the non-duplicate files are checked and will be uploaded. Users can add a checkmark to upload the file anyway (producing a file with an _1, etc. on the name).