safety upload

M

Mango

Hi friends,

Please help me.

I want to realize upload on .jpg files in my web server and I am not sure
haw to protect it. I mean, when the user do upload I have to give him/her
write privilege, I am not sure is this dangerous.

Is my server become more vulnerable?

How to protect it?

I will appreciate any help
 
M

Malik Asif Joyia

Hello
Dear Mango
First of all you can restrict the users to only upload image of jpg types.
by setting the accept attribute of HTMLInputFile Control e.g

<input type="file" id="filecontrol" accept="image/jpeg"
runat=server></input>

then it will only allow to upload image files.
and Set the folder Security where you are uploading the files to User
Account that your ASP.NET uses.

Regards
Malik Asif
ASP.NET
 

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

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top