ankitpokhrel / tus-php

🚀 A pure PHP server and client for the tus resumable upload protocol v1.0.0

Home Page:https://tus.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't upload same name two different file.

dipaksarkar opened this issue · 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.

commented

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 It was two different file of same name.

commented

@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?

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.

Closing because of inactivity.