Re: How to restrict the files while uploading..




"Geevaa" <govivasanth@xxxxxxxxx> wrote in message
news:1190883422.028342.204300@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Sep 26, 4:19 pm, anu <anunanni2...@xxxxxxxxx> 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


.



Relevant Pages

  • Re: How to restrict the files while uploading..
    ... Wt im tell was whn files ve to upload from remote server i dnt want ... fog eg: i want oly .txt files when v try to open it thr it cum lik ... so s thr any solution for that let it be knw .. ...
    (alt.php)
  • Re: How to restrict the files while uploading..
    ... Wt im tell was whn files ve to upload from remote server i dnt want ... fog eg: i want oly .txt files when v try to open it thr it cum lik ... so s thr any solution for that let it be knw .. ...
    (alt.php)
  • Re: How to restrict the files while uploading..
    ... Wt im tell was whn files ve to upload from remote server i dnt want ... fog eg: i want oly .txt files when v try to open it thr it cum lik ... so s thr any solution for that let it be knw .. ...
    (alt.php)
  • Re: How to restrict the files while uploading..
    ... Wt im tell was whn files ve to upload from remote server i dnt want ... fog eg: i want oly .txt files when v try to open it thr it cum lik ... so s thr any solution for that let it be knw .. ...
    (alt.php)
  • Re: How do I Save from MHTML .mht to HTML format only
    ... That will also add the .html extension ... You can choose the .html extension when you Publish to the ... The issue was the difference between html and htm on the index folder ... Double check that you did indeed upload to the ...
    (microsoft.public.publisher.webdesign)