|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi, How to restrict the files while uploading.. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
anu wrote:
> How to restrict the files while uploading.. Depends on what you mean with restrict, how your system look like and so on... An easy way is use chmod() and chown() on the file you saved. -- //Aho |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Hi, Wt im tell was whn files ve to upload from remote server i dnt want othr files to be uploaded in my sys .. fog eg: i want oly .txt files when v try to open it thr it cum lik this ALL FILES.. dnt want tat oly .txt files i need.. so s thr any solution for that let it be knw .. Thank U, Anu |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
anu wrote:
> Hi, > > Wt im tell was whn files ve to upload from remote server i dnt want > othr files to be uploaded in my sys .. > fog eg: i want oly .txt files when v try to open it thr it cum lik > this ALL FILES.. dnt want tat oly .txt files i need.. > so s thr any solution for that let it be knw .. > > > > Thank U, > Anu > I have absolutely no idea what you're trying to say. Try plain English. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ================== |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
anu <anunanni2006@gmail.com> wrote in news:1190805544.160867.132340
@r29g2000hsg.googlegroups.com: > > Hi, > > Wt im tell was whn files ve to upload from remote server i dnt want > othr files to be uploaded in my sys .. > fog eg: i want oly .txt files when v try to open it thr it cum lik > this ALL FILES.. dnt want tat oly .txt files i need.. > so s thr any solution for that let it be knw .. OMG ROFL YMMV CU |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
On Sep 26, 4:19 pm, anu <anunanni2...@gmail.com> wrote:
> Hi, > > Wt im tell was whn files ve to upload from remote server i dnt want > othr files to be uploaded in my sys .. > fog eg: i want oly .txt files when v try to open it thr it cum lik > this ALL FILES.. dnt want tat oly .txt files i need.. > so s thr any solution for that let it be knw .. > > Thank U, > Anu Anu, I guess u want the files with extension .txt alone to be uploaded ...Right??? use $_FILES[][] to find the name and type of the file and restrict the files .. refer php.net |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
"Geevaa" <govivasanth@gmail.com> wrote in message news:1190883422.028342.204300@d55g2000hsg.googlegr oups.com... > On Sep 26, 4:19 pm, anu <anunanni2...@gmail.com> wrote: >> Hi, >> >> Wt im tell was whn files ve to upload from remote server i dnt want >> othr files to be uploaded in my sys .. >> fog eg: i want oly .txt files when v try to open it thr it cum lik >> this ALL FILES.. dnt want tat oly .txt files i need.. >> so s thr any solution for that let it be knw .. >> >> Thank U, >> Anu > > Anu, > I guess u want the files with extension .txt alone to be > uploaded ...Right??? > > use $_FILES[][] to find the name and type of the file and restrict the > files .. > refer php.net not all files have extensions. not all file types can be found with php's abilities. it's still a guess...however, looking up mime types in the documentation will you get closer |
|
![]() |
| Outils de la discussion | |
|
|