Results 1 to 4 of 4

Thread: upload files to user folder

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2008
    Posts
    13

    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

  2. #2

    Thread Starter
    New Member
    Join Date
    Apr 2008
    Posts
    13

    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

  3. #3
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    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)

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  4. #4

    Thread Starter
    New Member
    Join Date
    Apr 2008
    Posts
    13

    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
  •  



Click Here to Expand Forum to Full Width