There is a file upload form:
<input class="file" id='textinput' type=file name=uploads_0 id=attachId0 size=60 onchange="checkUploadFile(this);" style="width: 479px"> I want to send my file: I find the item I need by type and change the value:
for i:=0 to WebBrowser1.OleObject.Document.forms.Length -1 do begin FormItem:=WebBrowser1.OleObject.Document.forms.Item(i); for j:=0 to FormItem.Length -1 do if FormItem.Item(j).type ='file' then FormItem.Item(j).filename:='D:\1.jpg'; end; But nothing happens, unlike the usual " input type=text ". Why?
Maybe there are other ways to upload files?