Remote Download Logic seems Backwards
-
Hello,
It appears the class-dlm-download-handler.php trigger logic is backwards for remote resources. It seems to want to download a chunk of the remote file instead of redirecting to the remote file. Perhaps I am missing something here. If I switch the code to:
if ( $remote_file ) { // Redirect - we can't track if this completes or not $this->log( 'download', 'redirected', __( 'Redirected to remote file.', 'download-monitor' ), $download, $version ); header( 'Location: ' . $file_path ); } elseif ( $this->readfile_chunked( $file_path, $range ) ) { // Complete!
The remote files work as expected, otherwise they download a chunk of the data. Perhaps I am setting something incorrect but it does seem pretty basic to change Location for remote files and then do the chunked file for local files.
–Edward
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Remote Download Logic seems Backwards’ is closed to new replies.