-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't resume uploads! #121
Comments
That's how it should behave, you are right. What is happening instead? |
It starts uploading the file from the beginning as a new upload. |
I think this is happening because when I send an API request to Vimeo to get an uploadUrl endpoint It will give me a new uploadUrl endpoint when the user refresh the page.. |
That seems to be the likely cause as far as I can tell. |
but isn't this the "resume = true" job? as I understand: User was uploading a file then when it reached 44%, the user refreshed the page, then the user re-upload the same file again: Is this right? If it is, Is there a way to check if the (fingerprint) for the file exist? |
Not in this case. If you supply a
However, if no
No, there is currently no way to do so. |
Thank you for your help, I have solved the issue using server-side cache. |
You're welcome :) |
Hi @Acconut, pretty same issue I am facing for couple of days. In my case, when I click on resume for a paused upload, it begins from the start. I checked the solution that 'ghost' resolved by. I am using file based cache in server-side where I have .cache/ folder having 'tus_php.server.cache' file. A sample entryin the cache file looks like when I click pause: "tus:server:41b5c307-a9c5-406a-8a3a-a2335732ecf4":{"name":"IMG_0045.JPG","size":2078503,"offset":0,"checksum":"","location":"http://example.com/files/41b5c307-a9c5-406a-8a3a-a2335732ecf4","file_path":"/var/www/vhosts/example.com/uppy/uploads/IMG_0045.JPG","created_at":"Sun, 21 Apr 2019 05:53:01 GMT","expires_at":"Mon, 22 Apr 2019 05:53:01 GMT","upload_type":"normal"}} Once it is uploaded without any pause, the cache file looks like: "tus:server:41b5c307-a9c5-406a-8a3a-a2335732ecf4":{"offset":2078503,"name":"IMG_0045.JPG","size":2078503,"checksum":"","location":"http://example.com/files/41b5c307-a9c5-406a-8a3a-a2335732ecf4","file_path":"/var/www/vhosts/example.com/uppy/uploads/IMG_0045.JPG","created_at":"Sun, 21 Apr 2019 05:53:01 GMT","expires_at":"Mon, 22 Apr 2019 05:53:01 GMT","upload_type":"normal"}} Only the offset has been changed. If I am missing anything on the server side cache settings. I am using tus-js-client at client side. Here is the Tus config at client:
Thanks in advance. |
@mahmudul I don't see an inherent problem with your configuration but it might be caused by tus_php, which I have never used personally. Does the problem persist if you use |
Hi @Acconut, thanks for your reply. Yes I am using browser and |
Yes, I agree with that.
Frankly, I don't know. I have never used tus_php and my PHP knowledge does not include opcache. So I can't help you there and would recommend that you just give it a try. |
I am developing a website using Laravel, and I am using tus-js-client to upload files directly to Vimeo without going through my server. The uploading works perfect.
But, lets say the uploading reached 44%, and then the user refreshed the browser... as I understand It should continue uploading from 44% when the user start uploading the same file again.. but that doesn't happen!
The text was updated successfully, but these errors were encountered: