How to save the select file path when select a file to upload again ?

May 30, 2009 at 9:33 PM

How to save the select file path when select a file to upload again ?

My evirenment :

Vist Home Edition

IE7.0

When I reopen the select file dialog , It always located the path to cureent user 's document file path .

Is there any way to locate the path to the last opened path by cureent contex .

May 31, 2009 at 3:57 PM

 

 

 

 

<font size="2">

 

</font>

 

<font size="2" color="#0000ff"><font size="2" color="#0000ff">

<

</font></font><font size="2" color="#0000ff">

 

</font>

cc2:FileUploader ID="FileUploader2" <font size="2">

 

</font>

OnFileReceived="FileUploader_FileReceived" runat="server" <font size="2">

 

</font>

RequestAsPostBack="True" JsFunc_FileStateChanged="fn_fileStateChanged" >

<font size="2">

 

</font>

</cc2:FileUploader>

Sub FileUploader_FileReceived(ByVal sender As Object, ByVal e As

com.flajaxian.FileReceivedEventArgs)<font size="2">

 

</font>

 

Dim strUniqueString As String

= System.Guid.NewGuid().ToString()<font size="2">

 

</font>

 

Dim strFileExt As String

= System.IO.Path.GetExtension(e.File.FileName)<font size="2">

 

</font>

 

Dim strFileName As String = "~\resimler\"

& strUniqueString & strFileExt

e.File.SaveAs(Server.MapPath(strFileName))

Image1.ImageUrl = strFileName

<font size="2">

 

</font>

 

End

Sub

Jun 1, 2009 at 6:31 AM

I think you missed my meaning .

Not the problem of the saving file to the server .

It is the "Open File Dialog" 's. When I use the dialog to select a file need to upload , The dialog cann't remember the last selected file's directory when I reselect a file again .

 

Coordinator
Jun 2, 2009 at 6:01 AM

Well, this is a question you should ask the guys from Adobe Flash. They don't allow any control over the file dialog as a part of their security. The OS is responsible for that.