PDA

Click to See Complete Forum and Search --> : Uploading To Server - Question


jesus4u
Oct 3rd, 2003, 02:33 PM
I am using the following code in the html to present the user with the ability to select a file to upload to the server.


<form id="Form1" encType="multipart/form-data" runat="server">
Select File to Upload: <input id="uploadedFile" type="file" size="20" name="uploadedFile" runat="server">
<p><input id="upload" type="button" value="Upload" name="upload" runat="server" OnServerClick="Upload_Click">
<p><asp:label id="message" runat="server"></asp:label>
</form>



All is well. I was just wondering if I can programmatically select the location that the user sees when the pop up window appears? I need to show our users on the intranet a specific location on the network versus the default view of their hardrive.

hellswraith
Oct 3rd, 2003, 02:39 PM
I don't think that is possible because IE is actually making the necessary API calls to get that file browser to show up.

I could be wrong though...and would love to be proved wrong in this case cause it would provide some awesome flexibility.

jesus4u
Oct 3rd, 2003, 02:45 PM
Know what?! It is! I just accidentally did it.

It is manual but run the page then manually paste in a networl location in the text box and then it uses that location to open to.

Now HOW can I programatically set it?

Thanks