Last modified: 2012-04-12 13:55:11 UTC
When attempting to upload a 2G file via the Special:Upload page, the upload hangs, and I see the following in my Apache error_log: Wed May 25 20:48:28 2011] [error] [client 10.10.20.227] PHP Notice: Undefined variable: errornum in /opt/cfgadmin/wiki/includes/upload/UploadFromUrl.php on line 116, referer: https://cfgmgtwiki.tanagerinc.com/index.php/Special:Upload No message appears in the browser, the browser stops trying to access the file to be uploaded from the URL provided after 10 seconds. Uploading of smaller files using this page works fine, this problem only occurred on a 2G file that I attempted to upload This problem does not occur when attempting to upload a file via the browser from my local hard drive. I hacked the code to return the curl error number, which is 28. This error only occurs when attempting to pull a 2G file from a http:// URL.
Seems as though this has been fixed in 1.17 and trunk.
This was fixed in r65043 on trunk by refactoring away from the CURL-specific code that had the error. Trying to fetch a large Fedora DVD iso downloads for a bit, then gives an expected timeout: http://fedora.mirror.lstn.net/releases/15/Fedora/x86_64/iso/Fedora-15-x86_64-DVD.iso "Error fetching URL: Operation timed out after 25000 milliseconds with 62264250 out of 3596310528 bytes received "