Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. System.Web.UI.WebControls.FileUpload

System.Web.UI.WebControls.FileUpload

Scheduled Pinned Locked Moved Web Development
databasedesignhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sheemap
    wrote on last edited by
    #1

    when i m trying to upload image in database showing System.Web.UI.WebControls.FileUpload not path i wanted to store image by image name where is the problem

    rizvan sivally

    L S 2 Replies Last reply
    0
    • S sheemap

      when i m trying to upload image in database showing System.Web.UI.WebControls.FileUpload not path i wanted to store image by image name where is the problem

      rizvan sivally

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      sheemap wrote:

      where is the problem

      Somewhere in your code.

      speaking as ...

      1 Reply Last reply
      0
      • S sheemap

        when i m trying to upload image in database showing System.Web.UI.WebControls.FileUpload not path i wanted to store image by image name where is the problem

        rizvan sivally

        S Offline
        S Offline
        Sandeep Mewara
        wrote on last edited by
        #3

        sheemap wrote:

        showing
        System.Web.UI.WebControls.FileUpload
        not path

        Whatever way you tried to extract the file path was incorrect. As such, you no more get the full file path, just the myFileUpload.FileName. This is based on security reasons. Further, once file is uploaded, all you need to worry/know is where is file is uploaded - path of this location. This is defined by you and can be very easily stored in DB along with the filename to access later. Go through this article to learn on how to do it: MSDN: Uploading Files in ASP.NET 2.0[^] MSDN: FileUpload Class[^]

        Sandeep Mewara [My last article]: Server side Delimiters in ASP.NET[^]

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups