check content type in asp

D

Deep

Dear sir/madam
I have to make a program in asp to upload resume. But hacker is
uploading any type of file. I want he can upload only text file.
I dont want to check only its extension.
How can I do please help me.
It's urgent.

Thanks in Advance
 
E

Evertjan.

Deep wrote on 05 nov 2009 in microsoft.public.inetserver.asp.general:
I have to make a program in asp to upload resume.

Are you qualified to do that?
Do you want to resume an upload, or is it a résumé?
But hacker is uploading any type of file.

Perhaps you are not qualified, Deep?
I want he can upload only text file.

Why? You should not want to give a hacker anything.
I dont want to check only its extension.

Contant can only be seen on the server after uploading.

Probably your best bet is just limit the length of the file.

Also define what a textfile is, if it is not defined by it's extension.
How can I do please help me.

Learn to write code, try, and show us where you go wrong.
Or pay a qualified programmer.
This NG is not a helpdesk.
It's urgent.

It is not to us.
 
E

Evertjan.

Roberto Franceschetti wrote on 10 nov 2009 in
microsoft.public.inetserver.asp.general:
[Please do not toppost on usenet]

There is no "what newsgroups are for", there is only "how newsgroups came
into being" and "how newsgroupt are generally used nowadays". Both do not
cover your interpretation.

And I do not think "someone else with the same question in the future
reading" will be helped by believing that "It's urgent" is acceptable on
usenet, as if it were a paid helpdesk.

I agree to give the guy some slack, not to cut the leash.

That is not an answer to the OP's Q, Roberto,

The OP specified:

Your solution is to test such file WHEN ALREADY UPLOADED,
and then choosing wether or not to save the file serverside.

The only way the OQ can be fulfilled is to have some clientside component,
not so usefull in the case of a wizzy and nasty hacker.

It is better to exclude him/her by passwording all other users.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top