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

Update upload() chunk clean up condition. #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update upload() chunk clean up condition. #3

wants to merge 1 commit into from

Conversation

goodtimeaj
Copy link

In method upload() of class phpVimeo, if $use_multiple_chunks is true, then chunking will always create a file named my_upload_file.file_ext.0, and if $size of the main file is less than the chunking threshold then only one chunk will be created and this chunk will not be cleaned up after upload when the condition for deleting chunks is (count($chunks) > 1). So update the condition to be ($use_multiple_chunks) instead.

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