* (bug 29154) Allow upload-by-URL to follow HTTP redirects
This commit is contained in:
parent
2767e134f4
commit
a16a028057
1 changed files with 3 additions and 1 deletions
|
|
@ -148,7 +148,9 @@ class UploadFromUrl extends UploadBase {
|
|||
$this->mRemoveTempFile = true;
|
||||
$this->mFileSize = 0;
|
||||
|
||||
$req = MWHttpRequest::factory( $this->mUrl );
|
||||
$req = MWHttpRequest::factory( $this->mUrl, array(
|
||||
'followRedirects' => true
|
||||
) );
|
||||
$req->setCallback( array( $this, 'saveTempFileChunk' ) );
|
||||
$status = $req->execute();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue