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

File download progress not working #58

Open
aalblas opened this issue Oct 6, 2017 · 1 comment
Open

File download progress not working #58

aalblas opened this issue Oct 6, 2017 · 1 comment

Comments

@aalblas
Copy link

aalblas commented Oct 6, 2017

We are very succesfully downloading/uploading small files (less than 1mb) but more recently we're trying to download larger files and seeing performance issues.

To understand this better, I'm trying to display the download progress of a large file, using the same method as for upload but it doesn't appear to be working. Calling:

file_manager.download('c:\test.zip','/test1.zip') do |bytes_copied, total_bytes, local_path, remote_path|
puts "#{bytes_copied} bytes of #{total_bytes} bytes copied";
end

Nothing gets printed though.

As a seperate issue, I can upload a 20MB file in about 30 seconds, but the download of the same file is taking approximately 4 minutes. Can anyone explain the reason for the difference in speed?

I'm also noticing that a file of about 7mb takes about 30 seconds to download, the 20mb file is taking significantly longer than the expected 1minute 30 seconds.

@clubby789
Copy link

The downloader doesn't yield its current progress, unlike the uploader. Not sure why.

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

2 participants