Developer forum

Forum » Feature requests » Possibility to upload to subfolders

Possibility to upload to subfolders


Reply

Hi,

In the file publishing module it is possible to enable showing of subfolders, but it doesn't seem as if it is possible to upload files to other locations than the specified root folder.

Am I missing something or is the above assumption correct?

Is there another module I could use instead to achieve that functionality?

Regards
Søren Hansen


Replies

 
Reply
Hi 

You can choose a specific folder from the File Manager to upload files to from the paragraph settings. Notice file manager icon next to the upload field.

Or are you looking for a solution to upload files to multiple folders?
 
Reply
The issue is that we are not using the file manager module on the website, but the file publisher (Filpublicering) It has the exact same user interface as this "Post forum reply box", where it is possible to browse for a file and an Upload button.

The user can navigate into any given subfolder in the area with the showed files/directories, but any files uploaded are automatically placed in the rooted folder specified in the configuration of the module, regardless of which subfolder you have navigated to.

 
 
Reply

You need to make a little change in the template...

There is a hidden input field, "folder", that specifies the target folder for the upload.

You have the current folder path available in the querystring parameter "folder".

You can see my solution in the attached template.

Note:
The attached solution will only work if your display folder setting and upload folder setting is pointing at the same folder.

I recommend that you only give trusted users access to file publishing upload :)

BR.
Morten