can someone give a hand on adding a feature to resize the images uploaded on this sample code
i dont want thumbnails ...just want to make shure that the files are always resized to a specific value..
thanks
The code for now is this :
i dont want thumbnails ...just want to make shure that the files are always resized to a specific value..
thanks
The code for now is this :
Visual Basic:
Public Sub upload(ByVal s As Object, ByVal e As EventArgs)
Dim s1 As String
Dim s2 As String
Dim pos As Integer
Dim folder As New DirectoryInfo("c:/inetpub/teste.Net/" & TextBox1.Text & "/" & TextBox2.Text)
If folder.Exists = False Then
folder.Create()
End If
s1 = arquivo.PostedFile.FileName
pos = s1.LastIndexOf("\") + 1
s2 = s1.Substring(pos)
arquivo.PostedFile.SaveAs("c:\inetpub\testeNet\" & TextBox1.Text & "\" & TextBox2.Text & "\" & s2)
If Page.IsPostBack Then
TextBox1.Text = ""
TextBox2.Text = ""
End If
End Sub
Last edited by a moderator: