Solution using session variables
I'm using the following solution for PHP:
1. Configure your upload folder settings in the HTMLEditor user interface like this:
You could even append several variables for more sophisticated security settings:
Just make sure you are using the above syntax.
2. Add this line:<?php session_start(); ?> on top of the following pages:
i: --> Your HTMLEditor form page
ii: --> /HTMLEditor/editor/filemanager/connectors/php/config.php
iii: --> /HTMLEditor/editor/plugins/kfm/configurtion.php
Make sure, you backup these files for your own safety, before you make any changes...
The settings get stored in the HTMLEditor GUI, so I can use them for all my forms.
Of course the user must be logged in properly.