How to restrict the files while uploading..

How to restrict the files while uploading..

am 26.09.2007 09:13:38 von Anu

Hi,


How to restrict the files while uploading..

Re: How to restrict the files while uploading..

am 26.09.2007 10:41:40 von Shion

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

Re: How to restrict the files while uploading..

am 26.09.2007 13:19:04 von 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

Re: How to restrict the files while uploading..

am 26.09.2007 14:56:26 von Jerry Stuckle

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
==================

Re: How to restrict the files while uploading..

am 26.09.2007 23:04:22 von Good Man

anu 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

Re: How to restrict the files while uploading..

am 27.09.2007 10:57:02 von geevaa

On Sep 26, 4:19 pm, 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

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

Re: How to restrict the files while uploading..

am 27.09.2007 15:16:32 von Steve

"Geevaa" wrote in message
news:1190883422.028342.204300@d55g2000hsg.googlegroups.com.. .
> On Sep 26, 4:19 pm, 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
>
> 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