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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -