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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. upload image

upload image

Scheduled Pinned Locked Moved Web Development
4 Posts 4 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.
  • M Offline
    M Offline
    michael_jhons
    wrote on last edited by
    #1

    please i need to upload image to my website. so it will be an option that allow users to upload images to the web page thanks in advance bachir

    H J 2 Replies Last reply
    0
    • M michael_jhons

      please i need to upload image to my website. so it will be an option that allow users to upload images to the web page thanks in advance bachir

      H Offline
      H Offline
      Hesbon Ongira
      wrote on last edited by
      #2

      please i need to upload image to my website. ok. so it will be an option that allow users to upload images to the web page description of what u want done. Lastly, where is your question? Be specific.

      --------------------------- Both optimists and pessimists are important in technology. The optimist invented the aeroplane; the pessimist invented the parachute. Regards, Hesbon Ongira Nairobi, Kenya.

      1 Reply Last reply
      0
      • M michael_jhons

        please i need to upload image to my website. so it will be an option that allow users to upload images to the web page thanks in advance bachir

        J Offline
        J Offline
        JimmyRopes
        wrote on last edited by
        #3

        I use this PHP class for image manipulation on the server. www.verot.net[^] Here is some sample HTML to get the files to the server. <fieldset> <legend>Image upload</legend> <p>Pick up an image to upload, and press 'upload' </p> <form name="logo_form" enctype="multipart/form-data" method="post" action="logo.php" /> <p></p> <p class="button"> <input type="submit" name="Submit" value="upload" /></p> </form> </fieldset>

        Simply Elegant Designs JimmyRopes Designs
        Think inside the box! ProActive Secure Systems
        I'm on-line therefore I am. JimmyRopes

        K 1 Reply Last reply
        0
        • J JimmyRopes

          I use this PHP class for image manipulation on the server. www.verot.net[^] Here is some sample HTML to get the files to the server. <fieldset> <legend>Image upload</legend> <p>Pick up an image to upload, and press 'upload' </p> <form name="logo_form" enctype="multipart/form-data" method="post" action="logo.php" /> <p></p> <p class="button"> <input type="submit" name="Submit" value="upload" /></p> </form> </fieldset>

          Simply Elegant Designs JimmyRopes Designs
          Think inside the box! ProActive Secure Systems
          I'm on-line therefore I am. JimmyRopes

          K Offline
          K Offline
          Kartik Rathi
          wrote on last edited by
          #4

          Try this Image Upload 1) Find name of image Img1=doc_file.FileName.ToString.Trim() 2) Replace blank space with “_” Img1=Img1.Replace(“ ”,”_”) 3) Use Substring Img1=img1.Substring(img1.LastIndexOf("\") + 1, img1.Length - img1.LastIndexOf("\") - 1) 4) Find Extension ext1 = doc_file.FileName 5) ext1 = ext1.Substring(ext1.LastIndexOf(".") + 1) 6)Check if ext is blank or not.if not then concatenate ext with “.” If Trim(ext1) = "" Then ext1 = "" Else ext1 = "." & ext1 End If 7)Send ImageName as blank in database 8)Take new String variable 9)ImageNew=”image_” & ret.tostring & ext1 10)Check if ext1 not equal to blank ImageNew=”image_” & ret.tostring & ext1 Then use update command update tblImages set ImageName='" & sImg_name_new & "' where ImageId =" & ret 11)Then use Upload Function

          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