How to restrict the files while uploading..
am 26.09.2007 09:13:38 von AnuHi,
How to restrict the files while uploading..
Hi,
How to restrict the files while uploading..
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
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 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
==================
anu
@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
On Sep 26, 4:19 pm, anu
> 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
"Geevaa"
news:1190883422.028342.204300@d55g2000hsg.googlegroups.com.. .
> On Sep 26, 4:19 pm, anu
>> 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 help you get closer