Upload a file via <input \\input> in HTML form with VBA
I am trying to upload a picture file to OCR Site , however, the PDF file doesn't get uploaded into the site. I am using the following code to achieve it and below is the HTML segment : Sub DownPDF() Dim FileName As String: FileName = "C:\Users\310217955\Documents\pdfdown\SGSSI001_HL1464_2011.pdf" Dim DestURL As String: DestURL = "https://www.newocr.com/" Dim FieldName As String: FieldName = "userfile" Call UploadFile(DestURL, FileName, FieldName) End Sub '******************* upload - begin 'Upload file using input type=file Sub UploadFile(DestURL, FileName, FieldName) 'Boundary of fields. 'Be