|
-
Apr 23rd, 2008, 03:56 AM
#1
Thread Starter
New Member
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
-
Apr 24th, 2008, 02:30 AM
#2
Thread Starter
New Member
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
-
Apr 24th, 2008, 03:03 AM
#3
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)
-
Apr 24th, 2008, 04:43 AM
#4
Thread Starter
New Member
Re: upload files to user folder
ty ty ty ty ty
its working now
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|