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

Bèr Kessels drupal-devel at drupal.org
Thu Jun 2 19:22:00 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:   Bèr Kessels
 Status:       patch

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




Bèr Kessels



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

June 2, 2005 - 19: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 - 19: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 - 19: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.







More information about the drupal-devel mailing list