Professional Web Applications Themes

cffile upload file field returns temporary path - Macromedia ColdFusion

Hi, I'm attempting to use cffile upload and the FORM file field is being returned as C:\CFusionMX\runtime\servers\default\SERVER-INF\temp\wwwroot-tmp\neotmp20485.tmp instead of Q:\Magic2\Images

-kilsyth_logo.jpg which is the file name (from browsing to file). This is the code... (note FORM.user is from another form on the same page). <form action="upload_photo.cfm?user=#FORM.user#" method="post" name="uploadPic" enctype="multipart/form-data"> <input name="user_image" type="file" size="40" maxlength="255"> <input type="submit" name="Submit2" value="Upload new image"> and the upload code... <cffile action="upload" nameconflict="overwrite" filefield="FORM.user_image" destination="D:\inetpub\wwwroot\magic.org.au\www\v 2\images\members" accept="image/jpg, image/gif" attributes="normal">...

  1. #1

    Default cffile upload file field returns temporary path

    Hi,

    I'm attempting to use cffile upload and the FORM file field is being returned
    as


    C:\CFusionMX\runtime\servers\default\SERVER-INF\temp\wwwroot-tmp\neotmp20485.tmp


    instead of

    Q:\Magic2\Images\01-kilsyth_logo.jpg

    which is the file name (from browsing to file).

    This is the code... (note FORM.user is from another form on the same page).




    <form action="upload_photo.cfm?user=#FORM.user#" method="post"
    name="uploadPic" enctype="multipart/form-data">
    <input name="user_image" type="file" size="40" maxlength="255">
    <input type="submit" name="Submit2" value="Upload new image">

    and the upload code...

    <cffile action="upload"
    nameconflict="overwrite"
    filefield="FORM.user_image"
    destination="D:\inetpub\wwwroot\magic.org.au\www\v 2\images\members"
    accept="image/jpg, image/gif"
    attributes="normal">

    Rustywater Guest

  2. #2

    Default Re: cffile upload file field returns temporary path

    In your query, use #CFFILE.ClientFile# instead of Form.user_image
    mattw Guest

  3. #3

    Default Re: cffile upload file field returns temporary path

    Thank you. That works.
    Rustywater Guest

Similar Threads

  1. Replies: 8
    Last Post: April 6th, 10:48 AM
  2. CFFILE Upload
    By Luni28 in forum Coldfusion - Getting Started
    Replies: 12
    Last Post: August 6th, 05:54 PM
  3. CFFILE - Form field does not contain file
    By debmurph23 in forum Coldfusion - Advanced Techniques
    Replies: 1
    Last Post: June 28th, 12:21 AM
  4. Replies: 4
    Last Post: March 21st, 07:33 PM
  5. cffile err- The form field did not contain a file
    By rheaps in forum Macromedia ColdFusion
    Replies: 0
    Last Post: March 9th, 10:43 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