when assessing the uniqueness of filenames, the filename extension is disregarded (see comments) #996
Comments
It is actually intended. We check the names to be able to replace the thumbnails. You might upload a.mp3 and then upload a.jpg as a thumbnail. |
If it is intended, this intention should be documented, i.e. the UI should say "uniqueness of filename stem" or something along those lines. |
Upon second thought, I don't really understand the problem with thumbnails. I'd assume thumbnails are named in such a way that these names never collide with names for the original files. So why can't |
When you want to create a thumbnail for the file |
Well, you have the md5 checksum. Also, there's nothing wrong with multiple extensions; so a thumbnail for |
The multiple extensions thing is a valid idea. |
I'd claim the md5 checksum idea is valid, too :) Actually, I even think it would be superior, because it would allow you to upload multiple files with the same filename and still be able to associate thumbnails with each one, using filenames like |
Ok, now I understand the idea with the md5. |
Going through this ticket.. How can one actually upload explicitly a thumbnail? |
Uploading files with names
a.pdf
anda.mp3
fails when thecheck uniqueness of filenames
box is checked. I think this is a bug, due to the usage ofFilenameUtils.getBaseName
instead ofFilenameUtils.getName
in https://github.com/imeji-community/imeji/blob/develop/src/main/java/de/mpg/imeji/presentation/upload/UploadBean.javaThe text was updated successfully, but these errors were encountered: