Assuming I understand you correctly, this is an HTML limitation. Browsers do not support multiple-file upload prior to HTML5. And even then, AFIK only webkit-based browsers will give you a way to select directories instead of individual files.
_Nik On 5/2/2012 11:53 AM, fanchyna wrote: > I have a question on django which has been bothering me for a while. I > tried to search it from the web but could not get an answer. > > What I want to do is to select a "directory" (only the path, not > including file) from the local file system. > > When I was designing my models.py (actually, I use ModelForm since I > already have had the models defined), either the FileField or > FilePathField does not work because they only allow me to select file, > rather than a directory name. Do you know how I can do that? > > I use FileInput as the widget for this field. But this only allows me > to select a file, rather than a directory. Should I use another one? > > For the fields that I really need a file, I use FilePathField, but > after I choose a file, the text box is not editable (everytime I put > my cursor into the text box, the file picker prompts out). Is there > anyway to edit the text box while keeping using the file picker? > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

