upload files to user folder
hi i am new here and i have a question
i have wrote a code in vb.net which allow me to upload files but for some reason i cant upload the files into the specific user
it always upload the files to the premium users folder and not into the session(premium")
in the session i have saved the username and when i debug i see that the seesion is at the corrent user but it wont upload the file into his dir
File1.PostedFile.SaveAs("E:\sitedownload\PremiumUsersDir\ " & session("premium") & ServerFileName)
ty
Re: upload files to user folder
pls help me if you know how i dont have a clue how to do this and i have to finish it by tommrow
Re: upload files to user folder
looks like you're missing a directory seperator character there - the session string in your code will be part of the filename. Try this:
Code:
File1.PostedFile.SaveAs("E:\sitedownload\PremiumUsersDir\ " & session("premium").tostring & "\" & ServerFileName)
Re: upload files to user folder
ty ty ty ty ty
its working now