Developer forum

Forum » Development » Filepublish module, upload in current selected folder

Filepublish module, upload in current selected folder


Reply

Hi,

 

I'm using the filepublish module to display a certain folder, with subfolders. Within the module settings i have enabled the upload feature.

 

When frontend users upload a file, it is always placed into the folder specified in the module settings. Is there a way i can have the upload into the current selected (sub)folder wherever the user is in at that moment?

 

-Emil


Replies

 
Reply

If you look at the template for uploading, you'll notice that there's a hidden field upload folder. With this combined with the path supplied in the querystring, you can specify an alternative destination folder using JavaScript in the template.

 
Reply
Sorensen wrote:

If you look at the template for uploading, you'll notice that there's a hidden field upload folder. With this combined with the path supplied in the querystring, you can specify an alternative destination folder using JavaScript in the template.

 

Thanks! Got it working.

 

 

 
Reply

Glad to hear so:)

 

You must be logged in to post in the forum