Skip to content
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

Upload-Offset value #293

Closed
Mbengparis opened this issue May 14, 2021 · 1 comment
Closed

Upload-Offset value #293

Mbengparis opened this issue May 14, 2021 · 1 comment

Comments

@Mbengparis
Copy link

I uploaded a video to vimeo using the tus approach in a VUE project and i verify the upload by sending a HEAD request to upload.upload_link.
I got the response object of the headers as follows:

"cache-control": "no-store"
"tus-resumable": "1.0.0"
"upload-length": "3739833"
"upload-offset": "0"

when i try to access the upload-length and upload-offset values tto build a progress bar, i get offset and length is undefined.

i tried to read the values a such:

response.headers.upload-offset
response.headers.upload-length

i think it becaue values should not contain hyphens

I need help on how to get those values. Thanks in advance.

@Mbengparis
Copy link
Author

got it working

res.headers['upload-offset']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant