There are about a half a dozen ways to do this with File Away. Well, three really. But there are ways!
1) If you just want to create a fixed directory for your users, you can use dynamic paths in your [fileup] or [fileaway] shortcode and add makedir=”true” to the shortcode. So, say your Base 1 directory is set to “wp-content/uploads”, then…
[fileup base=1 sub="fa-username/files" makedir="true"]
…will create a path: /wp-content/uploads/thomstark/files/
(if it doesn’t already exist) when I visit that page when logged in.
That’s if you just want to created fixed directories for different users. If you want them to be able to create as many sub-directories as they desire, you have two more options:
2) You can give them a manager mode table pointed dynamically to their personal parent directory like this (again, if base 1 = wp-content/uploads, just as an example):
[fileaway base=1 sub="fa-username/files" manager="on" password="YOUR_OVERRIDE_PASSWORD" user_override="fa-userid" makedir="true"]
This will give them a Manager Mode table that is rooted in the parent directory of /wp-content/uploads/thomstark/files/
. Then, when they’re on the page, the Manager Mode table will allow them to create unlimited sub-directories right there on the table.
3) If you don’t want them to have the ability to manage their own files with rename/copy/move/delete capabilities, there’s one more way they can create directories, in the File Up upload form itself. You have to have “Allow Subdirectories” set to “Allow Sub-Selection” (i.e., just do not put fixedlocation="true"
in your [fileup] shortcode). Then after they add files to the form, but before they upload them, you’ll notice that each filename in the upload table is actually an input field. They can change the name of the file before they upload it. If they want to create subdirectories, all they have to do is change the filename to: my_new_sub_directory/My_New_File_Name
before they upload. When it uploads, it will upload into the newly-created my_new_sub_directory
folder. They can do this as many levels deep as they like. my_new_sub_1/my_new_sub_2/File_Name
.
Once those directories are created, they’ll be able to select them from the Upload Location dropdown menu on the File Upload form, every subsequent time.