Professional Web Applications Themes

Upload image file - Coldfusion - Advanced Techniques

Below is my script <cffile accept="image/jpeg,image/gif" action="upload" destination="http://localhost/coba/lgdata/" filefield="theFile" > Didn't work. It said: The value of the attribute destination, which is currently "http://localhost/coba/lgdata/", is invalid. Could you tell me what's wrong with it?...

  1. #1

    Default Upload image file

    Below is my script

    <cffile accept="image/jpeg,image/gif"
    action="upload"
    destination="http://localhost/coba/lgdata/"
    filefield="theFile" >

    Didn't work. It said:
    The value of the attribute destination, which is currently
    "http://localhost/coba/lgdata/", is invalid.

    Could you tell me what's wrong with it?

    n4n4_qutie Guest

  2. #2

    Default re:Upload image file

    Don't reply.
    My mistakes. It has to be in "C:..\.." format not "http://..."
    My dreamweaver just show me http, ftp and https choices in the
    tootip...they've fooled me. Foolish :)

    n4n4_qutie Guest

  3. #3

    Default Re: Upload image file

    Hi

    I believe the DESINATION field is the directory for the file rather than the
    URL so something like c:\inetpub\wwwroot\coba\lgdata\

    CFFILE - UPLOAD details
    http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-p35.htm#wp3540091

    HTH

    Zoe

    zoeski80 Guest

Similar Threads

  1. Replies: 2
    Last Post: July 29th, 11:41 AM
  2. I need PHP and MySQl base file or image upload Extension
    By nobinxp in forum Macromedia Exchange Dreamweaver Extensions
    Replies: 3
    Last Post: July 3rd, 04:10 PM
  3. Upload Friendly (Multiple File Upload Applet)
    By ochiana in forum Coldfusion Server Administration
    Replies: 1
    Last Post: February 22nd, 02:16 AM
  4. PHP upload image/file command...
    By withhisstripes in forum Macromedia Dynamic HTML
    Replies: 0
    Last Post: September 1st, 04:50 AM
  5. how to upload an image selected from html file to flash file?
    By apple pie webforumsuser@macromedia.com in forum Macromedia Dynamic HTML
    Replies: 0
    Last Post: July 5th, 12:32 PM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139