views:

36

answers:

2

can we able to upload a file using HTTP GET or POST requet in HTML FORM tag.

update

what is the behaviour if i use GET in form tag.

+3  A: 

You need a POST request and set the form's enctype to multipart/form-data

Re your update: You need POST to upload a file, otherwise the form will be posted but the file won't come along.

GET is limited to a few kilobytes in maximum length, and multipart/form-data will work only with the POST method.

Pekka
you beat me to it, i'll just delete mine
JoseK
A: 

The following page shows how to do a multipart/mixed upload to a FORM using WebClient

feroze