php - Moving secure files out of assets to a secure folder -
by default (and far know can't changed) files uploaded /assets @ times , folders beneath assets. have secure set of files need uploaded, can't find way change uploaded to, figured on after write try , move file secure directory. have tried using
move_uploaded_file($file->name, '\/secret\/');
to move file root folder called 'secret' doesn't seem change anything. perhaps doing wrong on behalf or doesn't work. if has done before or knows how, appreciate can get. thanks.
in silverstripe not possible move cms controlled file or folder outside of assets
folder.
an alternative use secure assets module add access restrictions folders mirror access restrictions of sitetree
pages.
once module installed can change permissions of secure folder logged in users can access folder , files in it.
Comments
Post a Comment