error 20011 (wodHttpDLX)
after using http.request.formupload to upload a file
when the file is done i the next page i need to use
http.request.formpost.add to describe the file
yet im getting ...
20011 Could not set Content-Type header. Is it already set to some other value?
http.request.formpost.add is highlighted...
how do i fix?
Re: error 20011
Hi,
Can you show me a code snippet of what exactly you're doing?
How are you posting? Are you using blocking mode? Did you try our samples?
Regards,
Damba
Re: error 20011
[code]
http.Request.FormUpload.Add allow_syndication , Yes
http.Request.FormUpload.AddFile field_uploadfile , lvFiles.ListItems.Item(1), video/avi
http.Post sUploadURL$
[/code]
after its done uploading
[code]
http.Request.FormPost.RemoveAll
http.Request.Formpost.Add field_myvideo_title , sTitle
[/code]
http.Request.Formpost is what its highlighting...
Re: error 20011
Hi,
I cannot duplicate your issue. Here is my code:
[code]Set http1 = New wodHttpDLXCom
http1.Blocking = True
http1.Request.FormUpload.Add Name , drazen
http1.Request.FormUpload.AddFile TheFile , c:\test1.avi , video/avi
http1.Post http://www.weonlydo.com/HttpDLX/Demo/TestFormUpload.asp
Debug.Print http1.Response.Body & Success!
http1.Request.FormPost.RemoveAll
http1.Request.FormUpload.Add Name , drazen
http1.Request.FormUpload.AddFile TheFile , c:\test2.avi , video/avi
http1.Post http://www.weonlydo.com/HttpDLX/Demo/TestFormUpload.asp
Debug.Print http1.Response.Body & Success! [/code]
Can you maybe rewrite my sample to produce your issue? In sample I'm using our testing server for uploading files.
Hope I helped.
Regards,
Drazen