https://bugzilla.wikimedia.org/show_bug.cgi?id=51265

       Web browser: ---
            Bug ID: 51265
           Summary: extra purge needed / memcached and an uploaded file
                    greater than $wgUploadSizeWarning
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Uploading
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

I use the following configuration:

$wgMainCacheType = CACHE_MEMCACHED;
$wgMemCachedServers = array( "127.0.0.1:11211" );
$wgMaxUploadSize = 1024 * 1024 * 2;
$wgUploadSizeWarning = 1024 * 320;

If a file with a size below the value $wgUploadSizeWarning gets uploaded,
everything is ok. The information displayed below the uploaded file is
something like e.g. "‎(180 × 180 pixels, file size: 207 KB, MIME type:
image/jpeg)" as expected.

If a file with a size above the value $wgUploadSizeWarning gets uploaded, the
story is different.

First of all the warning message is: "It is recommended that files are no
larger than 327680; this file is $2." The wiki does not pick up the actual
value of the file. After the upload was done the following consequently gets
displayed below the file: "(500 × 500 pixels, file size: 0 KB, MIME type:
image/jpeg)"

To get the expected display you need to do an "&action=purge". After that I get
the "(500 × 500 pixels, file size: 524 KB, MIME type: image/jpeg)"

I am using MW 1.20.6 with PHP 5.3.3 and MySQL 5.1.66

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to