tus-php icon indicating copy to clipboard operation
tus-php copied to clipboard

Can't upload same name two different file.

Open dipaksarkar opened this issue 3 years ago • 3 comments

can't upload same same two different file. Suppose i have one file name with test.mp4 and same name another file in different location. If i uploaded on and trying to upload another then it's showing as completed.

dipaksarkar avatar Aug 02 '22 14:08 dipaksarkar

The file are compared based on their hash value generated from their contents. So if you have the exact same file with different name it is still the same file.

ankitpokhrel avatar Sep 18 '22 09:09 ankitpokhrel

@ankitpokhrel It was two different file of same name.

dipaksarkar avatar Sep 18 '22 09:09 dipaksarkar

@dipaksarkar The upload is determined by the Upload-Key which the client can pass in request header. A unique key is generated if this key is not available in the headers. I assume your client is sending same upload key if the filename is same. Could you check the Upload-Key header in your requests?

ankitpokhrel avatar Sep 18 '22 10:09 ankitpokhrel

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Nov 18 '22 00:11 github-actions[bot]

Closing because of inactivity.

github-actions[bot] avatar Dec 19 '22 00:12 github-actions[bot]