Hi, ive been trying to enable users to add images to a folder based on there user.identity.name
so if the user is logged in as TEST
when they add an image it would make a folder inside the images folder called TEST
C:\\images\TEST
also would there be a way to check if the folder was allready created? if it was still uplaod the file into the folder
ive been using this code to add files
If FileUpload1.HasFile Then
Try
FileUpload1.SaveAs("C:\\Files\\" + FileUpload1.FileName)
LblStatus.Text = "File Successfully Uploaded"
Catch
LblStatus.Text = "Unable to save the file"
End Try
Else
LblStatus.Text = "You have to select a file to upload"
End If
also is it possible to set allowable extensions to such as .jpg, .bmp etc?
im new to asp.net , so any help would be greatly appreciated
so if the user is logged in as TEST
when they add an image it would make a folder inside the images folder called TEST
C:\\images\TEST
also would there be a way to check if the folder was allready created? if it was still uplaod the file into the folder
ive been using this code to add files
If FileUpload1.HasFile Then
Try
FileUpload1.SaveAs("C:\\Files\\" + FileUpload1.FileName)
LblStatus.Text = "File Successfully Uploaded"
Catch
LblStatus.Text = "Unable to save the file"
End Try
Else
LblStatus.Text = "You have to select a file to upload"
End If
also is it possible to set allowable extensions to such as .jpg, .bmp etc?
im new to asp.net , so any help would be greatly appreciated