Hi,
The following flowscript dynamically makes a directory and uploads a
photo to it:
===Extracts===
var uploadWidget = form.lookupWidget("upload");
if (uploadWidget.getValue() != null) {
// test if user directory exists, if not, create it
if (!userDir.exists()) {
userDir.mkdirs();
}
uploadWidget.getValue().copyToFile(userDir + "/" + fileName);
}
===========
On Windows this works great; but on LINUX, the folder gets created with
0755 permissions (set by my ISP). This is insufficient to run my PHP
script on the photo -- which needs the folder to be set to 0774.
How do I set the folder permission values from this flowscript?
Thanks for helping this total newbee!
Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]