sharry icon indicating copy to clipboard operation
sharry copied to clipboard

Files uploaded with the same name are undistinguishable

Open frafra opened this issue 3 years ago • 4 comments

Files uploaded with the same name are undistinguishable from one another, if they have the same size. It would be nice to be able to show some extra details (upload time, hash, ...) and/or avoid having files with the same name in the same share at the same time (error, replace, use a new name, ...).

frafra avatar Sep 16 '21 07:09 frafra

Do you think this is a common problem? It never occurred to me at least…. When you download the files, the browser will rename the second one for you. I can imagine accidentally adding the same file; I'm not sure if this can be detected reliably. In this case a hash and upload time wouldn't add anything useful I think? It is possible to rename a file when one with the same name already exists, though. Maybe this would be a good thing to do.

eikek avatar Sep 17 '21 22:09 eikek

Do you think this is a common problem? It never occurred to me at least….

That is hard to say. In my case, I am going to receive the same file with the same name, just updated and larger, every day.

When you download the files, the browser will rename the second one for you.

That is right, but you have no way to distinguish them before downloading and opening them.

I can imagine accidentally adding the same file; I'm not sure if this can be detected reliably. In this case a hash and upload time wouldn't add anything useful I think? It is possible to rename a file when one with the same name already exists, though. Maybe this would be a good thing to do.

Showing the size and upload time would be of great help, without having to change the internals.

frafra avatar Sep 18 '21 20:09 frafra

That is hard to say. In my case, I am going to receive the same file with the same name, just updated and larger, every day.

That's interesting! Are they uploaded through an alias? Then a new share is created each time, I think? Or are they somehow added to the same share?

eikek avatar Sep 20 '21 08:09 eikek

That is hard to say. In my case, I am going to receive the same file with the same name, just updated and larger, every day.

That's interesting! Are they uploaded through an alias? Then a new share is created each time, I think? Or are they somehow added to the same share?

A new share is created. I am trying to replace an old FTP service which is used to share and retrieve data, coupled with a script that deletes files after a couple of weeks :)

frafra avatar Sep 20 '21 08:09 frafra