Change the directory for documents

  • Andreas Eckstein
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 7 months ago #103245 by Andreas Eckstein
Change the directory for documents was created by Andreas Eckstein
Hi!
Can I change the directory, where the download manager save the uploaded documents?
Just now the directory is: media/com_osmembership/documents.

Thank U!

Please Log in or Create an account to join the conversation.

More
7 years 7 months ago #103287 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Change the directory for documents
Hi Andreas

I am sorry. The folder is hardcoded and could not be changed. Could you please let us know the reason you want to change it? Please note that there is a .htaccess file in that folder, so users cannot download file directly even they know the link, so there should be no problem with that folder

Tuan

Please Log in or Create an account to join the conversation.

  • Andreas Eckstein
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 7 months ago #103298 by Andreas Eckstein
Replied by Andreas Eckstein on topic Change the directory for documents
Hi Tuan,
thank you for your support. There ist no security trouble. But it would be easier for me to select the documents in another folder, which already exists at another path.

Andreas

Please Log in or Create an account to join the conversation.

More
7 years 7 months ago #103300 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Change the directory for documents
I see

For now, please move the documents to the required locations. I will consider adding a parameter to allow changing location in the future (not a quick modification, so I don't want to rush on it)

Tuan

Please Log in or Create an account to join the conversation.

More
7 years 7 months ago #103303 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Change the directory for documents
Maybe you can wait me a bit. I will try to spend sometime to make the path configurable as a config option

Will update you when it is implemented. Should be soon, not much work, I think

Tuan

Please Log in or Create an account to join the conversation.

More
7 years 7 months ago #103308 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Change the directory for documents
Hi

I implemented the code, added a parameter to the Membership Pro - Documents plugin to allow setting custom path

Do you want to help me to test it? If Yes, please send an email to tuanpn@joomdonation.com and I will send updated version to you for testing

Tuan

Please Log in or Create an account to join the conversation.

More
7 years 7 months ago #103345 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Change the directory for documents
Hi

Just want to update that this option is now available in version 2.10.2 of Membership Pro, see www.joomdonation.com/forum/membership-pr...html?start=20#103344 (Item #1 in the list)

Regards,

Tuan
The following user(s) said Thank You: Andreas Eckstein

Please Log in or Create an account to join the conversation.