Hi,

Thanks - I think that did the trick.

Christian

On May 19, 8:05 pm, Mike Alsup <mal...@gmail.com> wrote:
> > This works fine as long as the user selects a file. The file plus the
> > text form elements are send to the server. Some intercepted traffic:
>
> > -----------------------------7d92e142190a
> > Content-Disposition: form-data; name="UserId"
>
> > 9bdfa5be-0608-4c14-92cd-defc92d64850
> > -----------------------------7d92e142190a
> > Content-Disposition: form-data; name="address_uid"
>
> > 1
> > -----------------------------7d92e142190a
> > Content-Disposition: form-data; name="IsLockedOut"
>
> > False
>
> > The body(?) has elements that are separated by the boundary string (in
> > this case 7d92e142190a). However, if the user does not select a file
> > the body's intercepted traffic looks like this:
>
> > UserId=3d7edf4d-84cb-4d03-87fa-26edfbebc6a0&address_uid=3&IsLockedOut=false­&username=test&email=
>
> > (more like a GET request)
>
> If you want to force the multipart enctype then set the iframe option
> to true.
>
> var options = {
>     iframe: true,
>     url: "<%= Url.Content("../../Account/Upload") %>",
>     // other options...
>
>
>
> });- Hide quoted text -
>
> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

Reply via email to