i have a form that works, now i want to upload an image

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • WideOpen
    New Member
    • Jan 2008
    • 4

    i have a form that works, now i want to upload an image

    Hi Everyone,

    I'm working on a form for an auto body shop admin section. It's a staff section so the owner or whoever can add/delete/edit any staff members which will then display on a staff page on the site. I've created the form in ASP and using an SQL database. It's writing the data fine but now i want to add the option to upload an image so they can put an image of themselves up there.

    Can anyone point me in the right direction so I can achieve this or help me out in some sort of way? Thanks a bunch and rock on!

    Stefan.
  • jeffstl
    Recognized Expert Contributor
    • Feb 2008
    • 432

    #2
    I have used this for an exact same need you are describing.

    http://www.freeaspuplo ad.net/

    The source code from this site is great for this problem.

    Comment

    • CroCrew
      Recognized Expert Contributor
      • Jan 2008
      • 564

      #3
      Hello WideOpen,

      You could store the picture in SQL as a BLOB type or you could upload the file to the server using a component like Persits (www.Persits.com) and store the name of the file in SQL. What every way you decide we can support you if you run into a problem.

      Good luck and happy coding~

      Comment

      • markrawlingson
        Recognized Expert Contributor
        • Aug 2007
        • 346

        #4
        Persits is the way to go IMO.

        I wouldn't store the name of the image in your database though, there's no need. Just go with a folder based hierarchy using the FSO object in conjunction with persits and you can pull off some pretty slick stuff without even touching your db.

        Sincerely,
        Mark

        Comment

        • WideOpen
          New Member
          • Jan 2008
          • 4

          #5
          Thanks everyone. This site is the best. 2nd time i posted and got excellent results from good people. I got it working and I'm very pleased with it. Thanks again everyone and stay awesome!

          Comment

          Working...