If you don't want to change your code, you can simply add a .htaccess file in your uploads directory ...
deny from all On Oct 13, 4:52 am, Orhan Toy <[EMAIL PROTECTED]> wrote: > Hi > > There a plenty of guides about uploading files to a database or to the > public folder with Cake. But what if I just want to upload files to > private folder? One solution could be to make my own folder somewhere > in the root but is there a predefined directory for this purpose? > > What I mean about private is that you can't access the file directly > via an url but instead it is the controller's job to get the file from > the "private" folder and serve it to the user. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
