Skip to main content
Alan_Koenig_920
Known Participant
July 6, 2015
Question

cffile image

  • July 6, 2015
  • 0 replies
  • 175 views

I am attempting to upload a photo and I keep getting errors.

    <cfform method="post" action= "test2.cfm" name="uploadForm" enctype="multipart/form-data">

    <cffile action = "upload"

        fileField = "FileContents"

        destination = "D:\home\manpcs.com\wwwroot\Realtor\images\"

        accept="image/*"

        nameConflict = "overwrite">

        <br>

        <input name="submit" type="submit" value="Upload File" > 

    </cfform>

Result

Invalid content type: ''.

The files upload action requires forms to use enctype="multipart/form-data".
The error occurred in D:/home/manpcs.com/wwwroot/Realtor/test.cfm: line 10
8 :         destination = "images\" 9 :         accept="image/*" 10 : nameConflict = "overwrite"> 11 :         <br> 12 :         <input name="submit" type="submit" value="Upload File" > 
    This topic has been closed for replies.