post with image file - WeOnlyDo Discussion board

post with image file (General questions)

by Klinzter, Monday, August 16, 2010, 03:15 (5212 days ago)

hello there,
when I try to upload a file its sending the post like this

Content-Disposition: form-data; name= fileupload ; filename= image.jpg
Content-Type: application/octet-stream


how can I make a post with data like this

Content-Disposition: form-data; name= fileupload ; filename= image.jpg
Content-Type: image/jpeg

Re: post with image file

by Klinzter, Monday, August 16, 2010, 03:22 (5212 days ago) @ Klinzter

ok I just found it.. its like this..

object.AddFile Name, Filename, [ContentType]