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. ASP.NET
  4. Ecommerce Image Uploading

Ecommerce Image Uploading

Scheduled Pinned Locked Moved ASP.NET
helpquestiondatabasesysadmin
5 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.
  • G Offline
    G Offline
    gekoscan
    wrote on last edited by
    #1

    I am creating an ecommerce site and I want to have a .aspx page that will give my client the ability to upload images... Is the best way to store them in a database ... this method seems quite crude. I know another way is to upload them onto the server. My problem isn't doing this it's how do I set the permissions on the folders on the host server? Thanks for the help, Steve Nelson

    K P G 3 Replies Last reply
    0
    • G gekoscan

      I am creating an ecommerce site and I want to have a .aspx page that will give my client the ability to upload images... Is the best way to store them in a database ... this method seems quite crude. I know another way is to upload them onto the server. My problem isn't doing this it's how do I set the permissions on the folders on the host server? Thanks for the help, Steve Nelson

      K Offline
      K Offline
      kaschimer
      wrote on last edited by
      #2

      Uploading into the database server IS crude... :omg: Can you contact the web hosting compnay to have them set the permissions on the folder for you? RabidK

      1 Reply Last reply
      0
      • G gekoscan

        I am creating an ecommerce site and I want to have a .aspx page that will give my client the ability to upload images... Is the best way to store them in a database ... this method seems quite crude. I know another way is to upload them onto the server. My problem isn't doing this it's how do I set the permissions on the folders on the host server? Thanks for the help, Steve Nelson

        P Offline
        P Offline
        Paul Watson
        wrote on last edited by
        #3

        Only store binary objects (images, documents etc.) in the database if you have a really good reason to. Otherwise use the file system. If you have permissions to do so the best way to give permissions to the folder for uploading files into it is to connect via Terminal Services, right-click, properties and then give the web user Write permissions. Also it is a good idea to have a seperate folder to upload files into (i.e. don't give write permissions to your root host folder, rather have root/clientimages)

        Paul Watson
        Bluegrass
        Cape Town, South Africa

        Macbeth muttered: I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er DavidW wrote: You are totally mad. Nice.

        1 Reply Last reply
        0
        • G gekoscan

          I am creating an ecommerce site and I want to have a .aspx page that will give my client the ability to upload images... Is the best way to store them in a database ... this method seems quite crude. I know another way is to upload them onto the server. My problem isn't doing this it's how do I set the permissions on the folders on the host server? Thanks for the help, Steve Nelson

          G Offline
          G Offline
          gekoscan
          wrote on last edited by
          #4

          Thanks so much for the reply. My worry is if i have write permissions on a certain folder anyone will be able to overwrite the images that have already been uploaded there. My client is a realestate agent and she wants the ability to add new realestate properties herself. We are using ASP.net to make it simple for her to upload the new properties she is advertising. I am just worried with write permissions on a folder mischievious users might overwrite or upload images. What is the best way to make sure my client can still upload pictures and others can't do the same. Thanks very much for your time. Sincerely, Steve Nelson

          L 1 Reply Last reply
          0
          • G gekoscan

            Thanks so much for the reply. My worry is if i have write permissions on a certain folder anyone will be able to overwrite the images that have already been uploaded there. My client is a realestate agent and she wants the ability to add new realestate properties herself. We are using ASP.net to make it simple for her to upload the new properties she is advertising. I am just worried with write permissions on a folder mischievious users might overwrite or upload images. What is the best way to make sure my client can still upload pictures and others can't do the same. Thanks very much for your time. Sincerely, Steve Nelson

            L Offline
            L Offline
            leppie
            wrote on last edited by
            #5

            I cant see what peoples problems is with images in a database... heck they are made for storage. Even file systems are moving towards a more database style storage, so why not load it in a database??? Anyways, your problem then. Just give the users create and write permission but not list permissions. But then again, why would they be looking at the folder? Generate a GUID, and name the image that, and make an entry in the database. I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02

            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