Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

Rename file before upload

$
0
0

Hi,

I want rename file befor uploaded,

I use this code, 

how to change it? please help me,

Dim str As String = Request.PhysicalApplicationPath
        Dim savePath, picPath As String
        savePath = ""
        picPath = ""
If (FileUpload1.HasFile) Then
            savePath = str + "pic" + "\" + fileName
            picPath = "~\pic\" + fileName
            FileUpload1.SaveAs(savePath)
            piclb.Text = "saved " & fileName
        End If



Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>