Results 1 to 13 of 13

Thread: Image upload

  1. #1
    Join Date
    Aug 2001
    Location
    Toronto, Ontario
    Posts
    678

    Default Image upload

    After many unsuccessful attempts, I have finally figured out how to use the image upload feature correctly.

    Create a table field called "photo" and asign it the variable "image"

    Go to your details page and insert the following tag

    <IMG SRC=<%photo%>


  2. #2
    Join Date
    May 2003
    Posts
    69

    Default

    Hart,
    I got the image thing working to... I have a question for you though...

    1. What do i edit to limit the max height and width of an image.


    Lordkinjo

  3. #3
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    go to your Admin Control Panel and towards the botton menu on the left, click the Technical Notes link in the Misc Section. Then click number 4. Customizing image upload.

    That may have some info for you.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  4. #4
    Join Date
    Aug 2003
    Posts
    233

    Default

    My installation's readme.txt told me NOT to upload the technote directory to my server. Did I miss something here ?

    best
    Lewis
    Best
    Lewis
    www.AtoZfitness.com/indexu

  5. #5
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    there is no problem doing the technotes either way. probably what dody was trying to say was you don't have to upload it.

    the tools folder is a little different since it has create_admin_user file and that SHOULD NOT be uploaded unless you really need it and then it should be deleted.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  6. #6
    Join Date
    Aug 2003
    Posts
    233

    Default

    Esm,
    Ok so just to make sure in order for me to setup the image upload feature I DO NEED to upload the technote directory but to be safe just do NOT upload create_admin file ?

    Lewis

    p.s. I talk to you more then my wife these days were not on a first name basis yet
    Best
    Lewis
    www.AtoZfitness.com/indexu

  7. #7
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    the notes are like a help file. they just describe the process of image uploading. you could just open the file on you local computer with text editor and read how to upload images, etc
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  8. #8
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

  9. #9
    Join Date
    Aug 2003
    Posts
    233

    Default

    for image upload I create a new field in alter called photo, type is image.
    What do you put for "Default Value" ?

    best,
    Lewis
    Best
    Lewis
    www.AtoZfitness.com/indexu

  10. #10
    Join Date
    Sep 2004
    Posts
    162

    Default

    Here is info from the tech notes:

    If you want to change the folder where to store image files, you should edit /themes/default/upload.html. Change the following line to point to your folder:

    <input type=hidden name=folder value=upload_files>



    upload.html does not exist? Where do I edit this info to make a new images folder??

    brickholius

  11. #11
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    the file is actually called upload_form.html
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  12. #12
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by Hart_House
    Create a table field called "photo" and asign it the variable "image"
    I see references to "variable image" and "image type." but I do not see where there is an image "type" in SQL.

    these are the "types" I see for mySQL

    • TINYINT
    • SMALLINT
    • MEDIUMINT
    • INT
    • BIGINT
    • FLOAT
    • DOUBLE
    • DECIMAL
    • DATE
    • DATETIME
    • TIMESTAMP
    • TIME
    • YEAR
    • CHAR
    • VARCHAR
    • TINYBLOB
    • TINYTEXT
    • BLOB
    • TEXT
    • MEDIUMBLOB
    • MEDIUMTEXT
    • LONGBLOB
    • LONGTEXT
    • ENUM
    • SET
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  13. #13
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    surely the database just stores the url to the image, using either text or varchar, then you get the image to show up using <IMG SRC=<%name_of_custom_field%> >

    I havent tried it yet, but I would be intrested in knowing any other ways...

    I tried adding a custom field to the database, which i gave a default value. IndexU seems not to worry about the default value though? the field stays blank...

Similar Threads

  1. image not showing up after upload.
    By persut in forum v5.x
    Replies: 1
    Last Post: 03-03-2004, 07:11 PM
  2. Image upload for modifier
    By lordkinjo in forum v5.x
    Replies: 4
    Last Post: 10-09-2003, 06:38 AM
  3. Getting full control of image uploader
    By dody in forum Tutorials, Hints & Tips
    Replies: 2
    Last Post: 08-20-2003, 05:14 PM
  4. Image upload problem
    By tariqali in forum v5.x
    Replies: 7
    Last Post: 07-13-2002, 09:14 AM
  5. Image Upload?
    By Hart_House in forum v5.x
    Replies: 10
    Last Post: 02-20-2002, 07:04 AM

Posting Permissions

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