Hi everyone,

I want to upload a particular file into a web portal. Web portal contains a Browse button. When we click on that button a dialog box opens and user can select the file from a path.

I want this to be done automatically.

file Name to be uploaded and the file path remains the same always.

I am attaching the web page source code for your reference.

Please help me..thanks in advance

	<INPUT TYPE=hidden NAME="destination" id="destination" VALUE="/itapplications/scmts_cqa/Shared Documents/Automation/Prime Automation/Archive" />
	<TABLE border="0" width="100%" cellspacing="0" cellpadding="0" class="ms-descriptiontext">
	<Control id="ctl00_PlaceHolderMain_SingleItemSection">
	
		<tr id="ctl00_PlaceHolderMain_ctl01_tablerow1" >
			<td class="ms-sectionline" height="1" colspan="2"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></td>
		</tr>
 
		<tr id="ctl00_PlaceHolderMain_ctl01" >
			<td class="ms-descriptiontext" valign="top">
				<table border="0" cellpadding="1" cellspacing="0" width="100%">
					<tr>
						<td class="ms-sectionheader" style="padding-top: 4px;" height="22" valign="top">
						  <H3 class="ms-standardheader">
Upload Document
						   </H3>
 
						</td>
					</tr>
 
					<tr>
						<td class="ms-descriptiontext ms-inputformdescription">
							
			 Browse to the document you intend to upload.
		
						</td>
						<td><IMG SRC="/_layouts/images/blank.gif" width=8 height=1 alt=""></td>
					</tr>
 
					<tr>
						<td><IMG SRC="/_layouts/images/blank.gif" width=150 height=19 alt=""></td>
					</tr>
 
				</table>
			</td>
			<td class="ms-authoringcontrols ms-inputformcontrols" valign="top"
			align="left" >
				<table border="0" width="100%" cellspacing="0" cellpadding="0">
					<tr>
 
						<td width="9px"><IMG SRC="/_layouts/images/blank.gif" width=9 height=7 alt=""></td>
 
						<td><IMG SRC="/_layouts/images/blank.gif" width=150 height=7 alt=""></td>
 
						<td width="10px"><IMG SRC="/_layouts/images/blank.gif" width=10 height=1 alt=""></td>
 
					</tr>
					<tr>
						<td />
						<td class="ms-authoringcontrols">
							<table class="ms-authoringcontrols" border="0" width="100%" cellspacing="0" cellpadding="0">
								
			
					<tr id="ctl00_PlaceHolderMain_ctl01_ctl02_tablerow1">
						<td class="ms-authoringcontrols" colspan="2" nowrap>
							<label for="ctl00_PlaceHolderMain_ctl01_ctl02_InputFile" id="ctl00_PlaceHolderMain_ctl01_ctl02_LiteralLabelText">Name:</label>
						</td>
					</tr>
					<tr id="ctl00_PlaceHolderMain_ctl01_ctl02_tablerow2">
						<td><IMG SRC="/_layouts/images/blank.gif" width=1 height=3 alt=""></td>
					</tr>
					<!-- End Right_Text -->
					<tr id="ctl00_PlaceHolderMain_ctl01_ctl02_tablerow3">
						<td width="11" ><IMG SRC="/_layouts/images/blank.gif" width=11 height=1 alt=""></td>
						<td class="ms-authoringcontrols" width="99%">
							
			   <TABLE class="ms-authoringcontrols" width="100%">
				<TR><TD>
					 <SPAN dir="ltr">
						<input name="ctl00$PlaceHolderMain$ctl01$ctl02$InputFile" type="file" id="ctl00_PlaceHolderMain_ctl01_ctl02_InputFile" class="ms-fileinput" size="35" />
					 </SPAN>
				</TD></TR>
				<TR><TD>
				<span id="ctl00_PlaceHolderMain_ctl01_ctl02_ctl00" style="color:Red;display:none;">You must specify a value for the required field.</span>
				<span id="ctl00_PlaceHolderMain_ctl01_ctl02_ctl01" style="color:Red;display:none;">The file name is invalid or the file is empty. A file name cannot contain any of the following characters: \ / : * ? " < > | # { } % ~ &</span>
					</TD></TR><TR><TD>
					<a id="ctl00_PlaceHolderMain_ctl01_ctl02_UploadMultipleLink" accesskey="U" onclick="javascript:return !LaunchPictureLibraryApp();" href="Upload.aspx?MultipleUpload=1&amp;List=c914401c-2cdc-48a6-bbf0-ffa66212e9e6&amp;RootFolder=%2Fitapplications%2Fscmts%5Fcqa%2FShared%20Documents%2FAutomation%2FPrime%20Automation%2FArchive&amp;Source=http%3A%2F%2Funiteddocs%2Euhc%2Ecom%2Fitapplications%2Fscmts%5Fcqa%2FShared%20Documents%2FForms%2FAllItems%2Easpx%3FRootFolder%3D%252fitapplications%252fscmts%255fcqa%252fShared%2520Documents%252fAutomation%252fPrime%2520Automation%252fArchive%26FolderCTID%3D%26View%3D%257b7EE10517%252dD288%252d4774%252d9181%252d58DED86DEAFE%257d">Upload Multiple Files...</a>
				</TD></TR>
				<TR><TD><input id="ctl00_PlaceHolderMain_ctl01_ctl02_OverwriteSingle" type="checkbox" name="ctl00$PlaceHolderMain$ctl01$ctl02$OverwriteSingle" checked="checked" /><label for="ctl00_PlaceHolderMain_ctl01_ctl02_OverwriteSingle">Add as a new version to existing files</label></TD></TR></TABLE>
			
						</td>
					</tr>
					
					<tr id="ctl00_PlaceHolderMain_ctl01_ctl02_tablerow5">
						<td><IMG SRC="/_layouts/images/blank.gif" width=1 height=6 alt=""></td>
					</tr>
 
		
							</table>
						</td>
						<td width="10px"><IMG SRC="/_layouts/images/blank.gif" width=10 height=1 alt=""></td>
					</tr>
 
					<tr>
						<td />
						<td><IMG SRC="/_layouts/images/blank.gif" width=150 height=13 alt=""></td>
						<td />
					</tr>
 
				</table>
			</td>
		</tr>
 
	
		<tr id="ctl00_PlaceHolderMain_VersionCommentSection_tablerow1" >
			<td class="ms-sectionline" height="1" colspan="2"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></td>
		</tr>
 
		<tr id="ctl00_PlaceHolderMain_VersionCommentSection" >
			<td class="ms-descriptiontext" valign="top">
				<table border="0" cellpadding="1" cellspacing="0" width="100%">
					<tr>
						<td class="ms-sectionheader" style="padding-top: 4px;" height="22" valign="top">
						  <H3 class="ms-standardheader">
Version Comments
						   </H3>
 
						</td>
					</tr>
 
					<tr>
						<td class="ms-descriptiontext ms-inputformdescription">
							
			Type comments describing what has changed in this version.
		
						</td>
						<td><IMG SRC="/_layouts/images/blank.gif" width=8 height=1 alt=""></td>
					</tr>
 
					<tr>
						<td><IMG SRC="/_layouts/images/blank.gif" width=150 height=19 alt=""></td>
					</tr>
 
				</table>
			</td>
			<td class="ms-authoringcontrols ms-inputformcontrols" valign="top"
			align="left" >
				<table border="0" width="100%" cellspacing="0" cellpadding="0">
					<tr>
 
						<td width="9px"><IMG SRC="/_layouts/images/blank.gif" width=9 height=7 alt=""></td>
 
						<td><IMG SRC="/_layouts/images/blank.gif" width=150 height=7 alt=""></td>
 
						<td width="10px"><IMG SRC="/_layouts/images/blank.gif" width=10 height=1 alt=""></td>
 
					</tr>
					<tr>
						<td />
						<td class="ms-authoringcontrols">
							<table class="ms-authoringcontrols" border="0" width="100%" cellspacing="0" cellpadding="0">
								
			
					<tr id="ctl00_PlaceHolderMain_VersionCommentSection_ctl01_tablerow1">
						<td class="ms-authoringcontrols" colspan="2" nowrap>
							<label for="ctl00_PlaceHolderMain_VersionCommentSection_ctl01_CheckInComment" id="ctl00_PlaceHolderMain_VersionCommentSection_ctl01_LiteralLabelText">Version Comments:</label>
						</td>
					</tr>
					<tr id="ctl00_PlaceHolderMain_VersionCommentSection_ctl01_tablerow2">
						<td><IMG SRC="/_layouts/images/blank.gif" width=1 height=3 alt=""></td>
					</tr>
					<!-- End Right_Text -->
					<tr id="ctl00_PlaceHolderMain_VersionCommentSection_ctl01_tablerow3">
						<td width="11" ><IMG SRC="/_layouts/images/blank.gif" width=11 height=1 alt=""></td>
						<td class="ms-authoringcontrols" width="99%">
							
				<textarea name="ctl00$PlaceHolderMain$VersionCommentSection$ctl01$CheckInComment" rows="5" cols="45" id="ctl00_PlaceHolderMain_VersionCommentSection_ctl01_CheckInComment" class="ms-long"></textarea>
			
						</td>
					</tr>
					
					<tr id="ctl00_PlaceHolderMain_VersionCommentSection_ctl01_tablerow5">
						<td><IMG SRC="/_layouts/images/blank.gif" width=1 height=6 alt=""></td>
					</tr>
 
		
							</table>
						</td>
						<td width="10px"><IMG SRC="/_layouts/images/blank.gif" width=10 height=1 alt=""></td>
					</tr>
 
					<tr>
						<td />
						<td><IMG SRC="/_layouts/images/blank.gif" width=150 height=13 alt=""></td>
						<td />
					</tr>
 
				</table>
			</td>
		</tr>
 
	</Control>
	
	
		<tr>
			<td height="2px" class="ms-sectionline" colspan="2"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></td>
		</tr>
		
		<tr>
			<td height="10px" class="ms-descriptiontext" colspan="2"><IMG SRC="/_layouts/images/blank.gif" width=1 height=10 alt=""></td>
		</tr>
		<tr>
			<td colspan="2">
				<table cellpadding="0" cellspacing="0" width="100%">
					<colgroup>
						<col width="99%">
						<col width="1%">
					</colgroup>
					<tr>
						<td>
							&nbsp;</td>
						<td nowrap>
							<input onclick="javascript:if (!VerifyCommentLength()) return false; if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate(''); __doPostBack('ctl00$PlaceHolderMain$ctl00$RptControls$btnOK','')" name="ctl00$PlaceHolderMain$ctl00$RptControls$btnOK" type="button" id="ctl00_PlaceHolderMain_ctl00_RptControls_btnOK" class="ms-ButtonHeightWidth" AccessKey="O" value="OK" />
							<input name="ctl00$PlaceHolderMain$ctl00$BtnCancel" type="button" id="ctl00_PlaceHolderMain_ctl00_BtnCancel" class="ms-ButtonHeightWidth" value="Cancel" accesskey="C" onclick="window.location='http:\u002f\u002funiteddocs.uhc.com\u002fitapplications\u002fscmts_cqa\u002fShared\u002520Documents\u002fForms\u002fAllItems.aspx?RootFolder=\u00252fitapplications\u00252fscmts\u00255fcqa\u00252fShared\u002520Documents\u00252fAutomation\u00252fPrime\u002520Automation\u00252fArchive\u0026FolderCTID=\u0026View=\u00257b7EE10517\u00252dD288\u00252d4774\u00252d9181\u00252d58DED86DEAFE\u00257d' " />
						</td>
					</tr>
				</table>
			</td>
		</tr>
		
		<tr>
			<td height="40" class="ms-descriptiontext" colspan="2"><IMG SRC="/_layouts/images/blank.gif" width=1 height=40 alt=""></td>
		</tr>
		
	</TABLE>
 
			 </td>
		  </tr>
		</table>
	  </td>
	  <td class="ms-rightareacell">
<div class='ms-areaseparatorright'><IMG SRC="/_layouts/images/blank.gif" width=8 height=100% alt=""></div>
</td>
	</TR>
<tr>
	<td class="ms-pagebottommarginleft"><IMG SRC="/_layouts/images/blank.gif" width=1 height=10 alt=""></td>
	<td class="ms-pagebottommargin"><IMG SRC="/_layouts/images/blank.gif" width=1 height=10 alt=""></td>
	<td class="ms-bodyareapagemargin"><IMG SRC="/_layouts/images/blank.gif" width=1 height=10 alt=""></td>
	<td class="ms-pagebottommarginright"><IMG SRC="/_layouts/images/blank.gif" width=1 height=10 alt=""></td>
</tr>
	</TABLE></TD></TR>
  </TABLE>