[drupal-devel] [bug] Incorrect units for upload messages

Dries drupal-devel at drupal.org
Sat May 21 11:43:55 UTC 2005


Issue status update for http://drupal.org/node/23213

 Project:      Drupal
 Version:      4.6.0
 Component:    upload.module
 Category:     bug reports
 Priority:     normal
 Assigned to:  drumm
 Reported by:  drumm
 Updated by:   Dries
 Status:       patch

Note: this patch does not apply against DRUPAL-4-6.  For HEAD, we might
be better of removing the multiplications, as stated in my previous
comment.




Dries



Previous comments:
------------------------------------------------------------------------

May 19, 2005 - 22:07 : drumm

Attachment: http://drupal.org/files/issues/upload.module_4.diff (2.02 KB)

The upload module stores these two particular variables as a number of
megabytes so we need to multiply by 1024^2 as happens elsewhere for
these messages. Seeing that something exceeeds a 1 byte quota is a bit
disconcerting when you have 1 MB.


I made the patch against HEAD, but the problem does exist in 4.6.x.




------------------------------------------------------------------------

May 21, 2005 - 13:42 : Dries

Can't we store the size in bytes instead of having to multiply with
'1024 * 1024' over and over again?







More information about the drupal-devel mailing list