Hello! Two questions..
Does upload script set permissions for files after uploading? For me uploaded files are chmodded to 600, so they are not even readable.
How can this be changed?
I have altered my image -folder path, but I can't get rid of this "Image". Files should be upoaded to "server_root/docs/phpuff/gfx" -folder. Now it creates this extra "Image" -folder under "gfx"-folder.
How can it be fixed?
from my fckconfig.js:
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/php/connector.php&ServerPath=/phpuff/gfx/" ;
Thanks in advantage..
Does upload script set permissions for files after uploading? For me uploaded files are chmodded to 600, so they are not even readable.
How can this be changed?
I have altered my image -folder path, but I can't get rid of this "Image". Files should be upoaded to "server_root/docs/phpuff/gfx" -folder. Now it creates this extra "Image" -folder under "gfx"-folder.
How can it be fixed?
from my fckconfig.js:
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/php/connector.php&ServerPath=/phpuff/gfx/" ;
Thanks in advantage..
RE: Image permission + default Image-folder (
Similar problem here...
it is too difficult to change file permissions or delete without SSH access, please anyone have information about this to set file permissions 777 or something else...
RE: Image permission + default Image-folder (
RE: Image permission + default Image-folder (
Hi!
if you are using 2.0 RC2 then in
commands.php
look at (#126)
function FileUpload( $resourceType, currentFolder )
then goto (#157)
move_uploaded_file( $oFile['tmp_name'], $sFilePath ) ;
chmod($sFilePath, 0755); // <---ADD THIS LINE
break;
works well for me
Erich
RE: Image permission + default Image-folder (
Chmod problem is solved (big smile), but I didn't really understand the other thing - getting rid of the "Image" prefix. Should I remove $resourceType or something?
-np
RE: Image permission + default Image-folder (PHP)
I solved it half - the filemanager uploads the pics in the correct folder, but when you select an image, it adds the folder "Image" which does not exist to the filepath.
I can't tell you how I made it, because I changed and played so much with the code. I try to figure it out and tell you then.
RE: Image permission + default Image-folder (PHP)
Just change the following:
-> connectors/io.php - line #27
return $GLOBALS["UserFilesPath"] . $resourceType . $folderPath ;
to
return $GLOBALS["UserFilesPath"] . $folderPath ;