hi
This is the path i have save into the DB:
/upload/9d08d0640453a041f10b5b307bcfffa7fd71\9d08d0640453a041f10b5b307bcfffa7fd71.pdf
did you notice that / / \ slashes? How do i change the \ to /?
and this is the code:
Dim filename As String = System.Guid.NewGuid().ToString.Replace("-", "0")
Dim filepath As String = "~/upload/" & filename
Directory.CreateDirectory(Server.MapPath(filepath))
For Each f As UploadedFile In RadUpload1.UploadedFiles
f.SaveAs(Path.Combine(Server.MapPath(filepath), filename + f.GetExtension))
Save(Path.Combine(filepath, filename + f.GetExtension).ToString)
Next
Will i have any problems if i would to just leave it as it is?
This is the path i have save into the DB:
/upload/9d08d0640453a041f10b5b307bcfffa7fd71\9d08d0640453a041f10b5b307bcfffa7fd71.pdf
did you notice that / / \ slashes? How do i change the \ to /?
and this is the code:
Dim filename As String = System.Guid.NewGuid().ToString.Replace("-", "0")
Dim filepath As String = "~/upload/" & filename
Directory.CreateDirectory(Server.MapPath(filepath))
For Each f As UploadedFile In RadUpload1.UploadedFiles
f.SaveAs(Path.Combine(Server.MapPath(filepath), filename + f.GetExtension))
Save(Path.Combine(filepath, filename + f.GetExtension).ToString)
Next
Will i have any problems if i would to just leave it as it is?