Author: nickpj
Description:
The error reporting on URL upload (via the $mUploadError member variable of the
UploadForm class in includes/SpecialUpload.php) can give an unrelated error
explanation. The error the user sees is: "This file is bigger than the server is
configured to allow." However the possible explanations are:
A) The URL string did not start with "HTTP://" or "FTP://" (e.g. could be
"HTTPS://")
B) You don't have permission to upload files this way. C) Could not open a temporary file. D) There was a CURL-related error retrieving the file (e.g. the website
specified was down).
E) The max upload size was exceeded.
Only cases B) and E) are handled currently, and all the others will show the
unrelated error message for case E).
To reproduce:
- Add this to LocalSettings.php: -------------------
$wgAllowCopyUploads = true;
$wgGroupPermissions['*']['upload_by_url'] = true;
- Go to [[Special:Upload]], select the radio button for a URL, and enter a URL
such as: "https://www.ibm.com/i/v14/t/ibm-logo.gif", and click "Upload file",
and observe the error message.
Version: unspecified
Severity: enhancement