By Tenx-1 on
Hi there ,
Can anyone tell me how i can achieve this :
I'm trying to let users on my site the ability to upload files to specific folders inside the filesystem . Im thinking something like a VIEW(expose) dropdown menu which list all folders that belongs to a user , then on the same page a file upload form which will allow the user to upload files to the folder they have chosen from the dropdown menu.
I dont know whether this is the correct way to go about (using views) but if you have any suggestions , please give them
Thanks
Comments
_
You can use the core upload module with the http://drupal.org/project/upload_paths module, or the http://drupal.org/project/filefield (and optionally the http://drupal.org/project/filefield_paths) module to create specific folders for file uploads.
afaik, there's no way to allow uses to select the 'folder' (and no, views wouldn't do this). You could allow users to tag the files with terms and use that to mimic folder behavior (afterall, the users shouldn't be mucking around the file system anyway, so they won't know the difference).
you can then use views to create various lists of the files for browsing/downloading.
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
Thanks for those suggestions
Yes im using UPLOAD_PATHS module already to create folders inside the file system , that is working great.
So users cannot select the folders , so would i need to create taxonomies (or categories or terms ) for each folders , then let users select a term before uploading their files .
Is there a module out there that allows for this to happen ?
_
Just enable the core taxonomy module and create and assign vocabulary to the content type you use for the file uploads.
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
Thanks for your help i will
Thanks for your help
i will give it a try .