Postponed (maintainer needs more info)
Project:
FileField Role Limit
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2012 at 10:13 UTC
Updated:
26 Dec 2012 at 16:46 UTC
Comments
Comment #1
kongoji commentedHi hachreak,
your question is very interesting, but I believe it could be more related to CCK module than FileField or FileField Role Limit modules.
This is because FileField module relies on CCK module to set the maximum number of values.
My suggestion is to use the
hook_form_alter()to make the field fit your needs, in particular you could read an example here.Another solution you could keep an eye on could be using User Quota or Node Limit Number module to let user create a limited set of nodes. This would work pretty well if you let user create a node for every file, limiting FileField number of values to only one file uploadable per node, but I'm not sure this solution would be ok for you.
I leave this thread open, I'm very interested to know if other solutions other than these are possible.
Comment #2
kongoji commentedSince 4 weeks passed away without any reply, I put this on "posponed" status.
Feel free to re-open this issue as soon as you have new questions or solutions.
Greetz
Comment #3
webadpro commentedI would also be interested into this but for D7.
Comment #4
kongoji commentedHi webadpro,
the best option is to use a form_alter() workaround to limit number of upload fields by role.
I will look if this is a feature I can add to the next 7.x-1.x version, but right now I suggest you to implement that workaround or to use modules like User Quota or Nod Limit Number