[drupal-devel] [task] Remove an unnecessary setting in upload module

Dries drupal-devel at drupal.org
Fri Jun 3 11:58:19 UTC 2005


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

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

Removing the global check is OK if we remove the '0 is
unlimited'-paradigm.  A paradigm which, by the way, is
developer-centric.  I don't mind us removing it.




Dries



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

June 2, 2005 - 20:02 : drumm

Attachment: http://drupal.org/files/issues/upload.module_5.diff (4.01 KB)

Currently the upload module checks two max file sizes. First it checks a
global option; if its too big it quits. Then it checks another max file
size (or even sizes) related to the roles which a user is in.


We can remove the global option since the individual roles are checked.




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

June 2, 2005 - 20:15 : drumm

Oh and this includes a refactoring which changes one undocumented
function that did two things into two documented functions that do one
thing each. Forgot about that part.




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

June 2, 2005 - 20:22 : Steven

Well, you're not entirely correct... upload module allows you to disable
a limit by setting it to 0. Thus, you could either want per-role
settings, or global settings. Or use the global setting for everyone,
except have one role have a stricter limit.


So we need to decide whether these are valid use cases, or just
unnecessary complexity.




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

June 2, 2005 - 21:21 : Bèr Kessels

I add a +1 for anything that removes complexity from the upload module.
So I +1 this change.







More information about the drupal-devel mailing list