Hi Ritesh, Try placing:
Options -Indexes In your .htaccess file. That should disable directory listings. Rhett -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of bingo Sent: Wednesday, February 21, 2007 7:41 PM To: Cake PHP Subject: Re: file upload Hi, I think i found solution to my problem.. I created a .htaccess file and placed it inside files folder with the following line #prevent directory listing IndexIgnore * and now it doesn't allow browsing...great Regards, Ritesh On Feb 21, 8:31 pm, "bingo" <[EMAIL PROTECTED]> wrote: > Hi > > thanks to all your reply..I got file upload working..however there is > one problem.. > Now anyone can see the directory structure and all the files.. > I am not sure how to manipulate htaccess so users can only use the > link provided by the application and do not have access to other files > > Regards, > Ritesh > > On Feb 21, 8:16 pm, "Jon Bennett" <[EMAIL PROTECTED]> wrote: > > > > > > is there a way to avoid cakephp taking control over file the folder > > > why not follow Cake's conventions and save the files in: > > > mysite/app/webroot/files > > > which will be publically accessible via: > > >www.mysite.com/files/filename.ext > > > hth > > > jon > > > -- > > > jon bennett > > t: +44 (0) 1225 341 039 w:http://www.jben.net/ > > iChat (AIM): jbendotnet Skype: jon-bennett- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
