Afficher un message
Vieux 02/10/2006, 14h12   #2
Newsgroup Poster
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Secure a web-accessible upload directory

quite simply you can't as ur on a shared hosting platform.

there are scripts that will only allow certain filetypes uploaded ie: .gif .jpg .doc .pdf .txt


"7elephants" <andrew@andrewsteiger.com> wrote in message news:1159494594.253919.190750@k70g2000cwa.googlegr oups.com...
> Hi,
>
> I have a site running Linux/Apache/PHP that users can uploads photos to
> a directory within the webroot. The only way that I have been able to
> get the upload to work is if I chmod the upload directory to 777. The
> site is running at a shared hosting provider so I don't have access as
> to who apache and/or PHP is running under, but I assume nobody. How
> can I get the upload to work while not exposing the directory as a huge
> security hole?
>
> Thanks in advance.
>



  Réponse avec citation
 
Page generated in 0,06782 seconds with 9 queries