SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Jan 2007
    Posts
    296
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Upload an image to mysql database

    I have spent most of the day looking for a good tutorial that will explain to me how I create a script that allows multiple images to be uploaded into a mysql database from an html form.

    I would then like to be able to download the images from the database so that I can store them in a folder on my desktop.

    Could someone please send me in the right direction as to how to do this and where I can find a good tutorial that we will help me understand what is happening.

    Cheers

  2. #2
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Most people do not store images in databases, they store them on the file system. They may well store the path, and filename and meta data like the size in a database.

    But if you are determined to do that, here is some stuff google found.

    If you are new to uploading, then you must read the manual pages over and again until you understand the complexity, security implications and size settings that govern this operation.

    file upload

    There is a chapter on multi-file uploads.

    Don't skimp on the security aspect of this, that way you can take a good shot assessing the suitability of other uploader scripts you may find.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •