Per-user file upload limitations factor in non-Node Gallery files to total
justintime - December 14, 2009 - 20:26
| Project: | Node Gallery |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | postponed |
Jump to:
Description
The per-user bytes quota is checked via Drupal's file_validate_size() function. This function looks at the user's total bytes used throughout the Drupal installation (as represented in the files table). The problem is that if a site implementing Node Gallery is using the Upload module (or any other module that tracks files in the files table), those files will be counted against the user's quota, even though they are not a Node Gallery image type.
My best guess at a fix is to write our own validator that sums up only the correct files in the files table.

#1
It might be too intensive to write that (because of the extra processing against the database + having to "reinvent the wheel."
Ideally, the nodegally will leverage imagefield in 3.x, so it may not be worth spending the time to solve this issue for 2.x?
#2
That's what I was hoping you'd say ;-)
I'll mark this one as postponed, but do we have a "Known Issues" area where we can keep track of things like this? I hate to turn off the whole feature, as it may prove useful to a lot of people, there's just a bug associated with it.
#3
yes there is 2 places for known issues.. one on the project page and
http://drupal.org/node/544050 ,the handbook main page
It could be detailed in the troubleshooting section of the handbook.. use php my admin to edit the files table(remove failed uploads) -or- set the limits high to avoid this altogether.
Is there some idea of a time frame for Node_gallery 3x.. possibly.?
I guess I am assuming node_gallery3x will be for D7..?