Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Email attachment di...
 
Notifications
Clear all

Email attachment directory

2 Posts
2 Users
0 Reactions
3,340 Views
(@eabjoker)
Posts: 11
Active Member
Topic starter
 
[#4602]

The email attachment directory is hard-coded to place files under the web root.

From Cron.php line 529
$emailAttachmentsDir=dirname(__FILE__) . '/../files/attach';

This resolves to '/model/../files/attach' -> '/files/attach'

My files directory is outside of the webroot and this line breaks the Cron mail check feature since '/files' does not exist.

Can you add a configuration parameter for setting the attach directory for emails? Or use the same config setting as for attachments directory under Global Parameters->Files and directories->attachments directory.


 
Posted : 23 Aug 2017 22H32
(@babynus)
Posts: 14952
Member Admin
 

Hi,

Thanks for pointing out this issue.
What is change is that if it resolves to '/model/../files/attach' -> '/files/attach', this means that is directly projector folder, so /files/attach should exist (even if not used if you moved this directory in parameters, as advinsed) because it is created on deployment.
And there should be no issue as this feature (attachment is emails) is not used yet.

I've recorded a ticket to fix this, because it may becme important (at least for security) when it will be used.


 
Posted : 27 Aug 2017 22H37
Share:

Scroll to Top