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

greg.harvey’s picture

Assigned: Unassigned » greg.harvey

Hmm, I thought this had been fixed already? Doh! Will investigate.

joachim’s picture

Status: Active » Closed (duplicate)