-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
Uppy-TUS-PHP (Local pc vs Server): file resuming starts from beginning after pause #139
Comments
@mahmudul is it possible for you to try with redis cache? File based cache is not as mature as redis though it should work in most of the cases. In any case can you paste the contents of cache generated when you start the upload and after you refresh and start again? |
@ankitpokhrel, Possibly, I can try redis cache. Just wondering why not the file based cache is working in remote server where the local server was able to perform great using the same script. A sample entry in the cache file ( .cache/ folder having 'tus_php.server.cache' file) looks like when I click pause:
Once it is uploaded without any pause, the cache file looks like:
I don't have other cases as it starts from the beginning and the cache file looks like the same as the former one. Thanks. |
same issue for me, same setup. |
I decided to next try with Redis. |
I have the same issue, tried with node js tus server and it works fine. Also i am getting this warning |
same issue as yours @klimentLambevski |
apologies for late response, are you guys having same issue after #143 was merged? |
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. |
Unfortunately I have the same issue with the latest package version. |
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 this as a duplicate of #44 |
Hi, |
Same issue, here what is going on: on production server, after resuming, the upload starts from last chunk that was uploaded successfully, so if it is a first chunk, or the file is small enough to fit in one chunk, it will be start from 0 on localhost, after resuming, currently uploading chunk continues upload (it is not being started from scratch, as expected) i tested it on 2 domains: one is proxied by cloudflare and one not, same issue in both cases when HEAD request is sent to server after upload is resumed, it returns Upload-Offset from last fully-uploaded chunk or 0; i tested with both file and redis as cache adapters; i also ensured that uploads directory and .cache folder has read and write permissions it's hard to figure out what exactly is the source of problem... probably it is related to server config... i will let you know if i figure it out |
Hi, thanks for sharing the great library for TUS server implementation. I am using this library for Uppy. For last couple of days, I am facing issue with uppy file resuming using tus-php in my server running under php 7. Every time I pause and resume or reload browser, it loads from the start. The progressing circle goes back to zero and begin again. It should have been started where it left. This is working great in my local PC of XAMPP environment having php 7 installed. That means it's not the issue from tus-js-client library that I am using as a client. I have the same script running at my server and local pc. So, that should be the server settings which is causing the issue. If anybody here including the author could do any help or guidance that would really save me. I have attached the screenshots (sorry long vertical images, so sharing the link only) of phpinfo for both local pc and server for comparison if it would help to diagnose.
Local PC (Working): https://user-images.githubusercontent.com/494665/56719235-26fbc180-6762-11e9-99ca-ccab46aec90f.png
Server (Not working): https://user-images.githubusercontent.com/494665/56719236-27945800-6762-11e9-810d-ce905da6f776.png
I am using file based cache. I disabled the mod_cache_disk in local pc to check whether it's the cause but it's working without that module. I am suspecting file opcache which is disabled in server.
Thanks in advance.
The text was updated successfully, but these errors were encountered: