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 progress #38

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Upload progress #38

wants to merge 6 commits into from

Conversation

Paulosmelo
Copy link

I am using vimeo_me2 gem in my work project and I need to make a progress bar so that I can get my client feedback of the uploaded video. So I thought about contributing to creating a function to check this progress. Maybe isn't really a clean code because I'm still a junior software engineer but I hope with some help we can do it!

@bo-oz
Copy link
Owner

bo-oz commented Jun 17, 2021

Hi,

I don't think this will work as you think it would. When using the upload function, the code is blocked until the upload has completed (or failed). Or do you have a different idea? I think the only option is to create a separate API request to get the status of the upload, but for that you also need to pass the ID of the video that's being uploaded (I guess, as I've never tried this)

Cheers

@Paulosmelo
Copy link
Author

Yes, after looking up the code I realized that is using a patch to upload the file until it is done. I also tried to create a different API request using a VimeoObject.patch but I got a Broken pipe (Errno::EPIPE).

Thanks

@bo-oz
Copy link
Owner

bo-oz commented Jun 17, 2021

Other option might be to use a JS way of uploading the file directly from the client. That way you can easily do a progress bar.

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

Successfully merging this pull request may close these issues.

2 participants