CFFile and multi-file uploading

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default CFFile and multi-file uploading

    I'm trying to create a 'better' file upload interface for a site and run into
    a snag. Using a File Input tag I'm creating a list then looping through the
    list, passing the individual file path/names to the CFFile tag. I keep getting
    the error that "The form field XXX did not contain a file." and I'm starting to
    think that there is something internal in the File input tag that ties it to
    the CFFile FileField attribute. I haven't been able to find any documentation
    stating this, but then again I haven't been able to find any examples that do
    what I'm doing.

    <CFLOOP INDEX="files" LIST="#FORM.FileList#">
    <CFFILE ACTION="UPLOAD" FILEFIELD="files" DESTINATION="C:\TEMP\UploadTest"
    NAMECONFLICT="MAKEUNIQUE">
    </CFLOOP>


    Ashburton Guest

  2. Similar Questions and Discussions

    1. Uploading with CFFILE
      When trying to upload larger files (10 MB+) I get the following error message: "Error writing data from Web Server to the Cold Fusion Application...
    2. CFFILE Uploading files from network share
      Help Please!!! I have a mission critical application which uses CFFILE to upload documents. It works fine on the testing environment but fails on...
    3. cffile and uploading a jpg on my hosting server?
      this code <cffile action="upload" destination="\temp" nameConflict="overwrite" fileField="Form.FiletoUpload"> used for uploading a file (ie....
    4. CFFILE - Uploading multiple files
      I'm having a problem trying to upload several files. I am using the code below. Any assistnace will be appreciated. Thanks Norm <cfdirectory...
    5. multi file multi colomn
      can you more clearly explain your problem? - do your files contain of many lines and you want this: f1l1;f2l1;f3l1; ... f1l2;f2l2;f3l2; ......
  3. #2

    Default Re: CFFile and multi-file uploading

    Well it is that CFFILE can not do the thing you want. Passing paths does not work. You will need something like CFFTP to do the job.
    Cubensis Guest

Posting Permissions

  • You may not post new threads
  • You may 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