I don't know why this is being multiplied like this:
$bytelimit = $limit * 1000000;
why isn't it 1024 * 1024?
At any rate, my patch for the filefield description causes a problem here: I set the field limit to 3MB, and the description comes out as 2.86 MB!
Comments
Comment #1
greg.harveyHmm, I thought this had been fixed already? Doh! Will investigate.
Comment #2
joachim commentedDupe of #370552: Byte multiplier is incorrect.