Hello,
in my solution I load and stream files by
"plugins.file.streamFilesToServer(_file,_new_name,m_streamingDone)"
to the
"servoy.FileServerService.defaultFolder:"
set in servoy-admin on a Mac OS X server.
This works, but the files will be stored with owner rights "root:staff" and not "<username>:staff".
Why is Servoy server using "root" instead of "<username>"?
When I check by function if the file is stored:
var _path = plugins.file.getDefaultUploadLocation() + '/' + attachment_real_name;
var _file = plugins.file.convertToJSFile(_path);
_file.exists() returns false
although the file exist in the upload location!?
Deleting the file also fails by
var _location = plugins.file.getDefaultUploadLocation(),
_name = attachment_real_name,
_filepath = _location + '/' + _name;
_file = plugins.file.convertToJSFile(_filepath),
_success = plugins.file.deleteFile(_file);
Because of the owner rights "root" of the file, I can manually remove it only as sudo, but I can.
Servoy 7.4.6
Mac OS X 10.11 Server
Java 1.8_74
Regards Thomas