CFFILE Upload Suddenly Not Working

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

  1. #1

    Default CFFILE Upload Suddenly Not Working

    Originally this worked, and now it processes it and puts the correct url in the
    database, but it just doesn't upload the image. Any help why it suddenly stops?


    <cfif form.filecontents eq "">
    <cfelse>
    <cffile action = "upload" filefield="filecontents"
    destination = "/home/sla/public_html/images/uploads/"
    accept = "image/*"
    nameconflict="overwrite" attributes="normal" >
    <cfset FileLocation = "http://home.sbcomp.net/~sla/images/uploads/" &
    CFFILE.ServerFile>
    </cfif>


    weswhite7 Guest

  2. Similar Questions and Discussions

    1. Problem with cffile upload
      Hi! I've checked in this forum and in google but just can't find any solution to following error: When i'm uploading a - not so (2-3 mb) -...
    2. CFFILE - Upload on Unix/Solaris not working..
      after removing MODE and ACCEPT This still does not work: <CFFILE ACTION="UPLOAD" FILEFIELD="Form.FiletoUpload"^M...
    3. CFFILE Upload
      Hi, i would build an upload form for pictures. how can i limit the upload to the size attributes (width & height) of the picture? the user should...
    4. CGI upload to CFFILE
      Hello, I find that there is a security feature that does not allow the prefilling of the path in a form "<input type="file" name="fieldname">" tag....
    5. cffile upload - makeunique not working
      My application allows clients to upload images to their account. The process of my application is: upload file from form, set to variable myFile,...
  3. #2

    Default Re: CFFILE Upload Suddenly Not Working

    I'd bet the permissions on your server got changed.
    jdeline Guest

  4. #3

    Default Re: CFFILE Upload Suddenly Not Working

    Nope, the settings have been untouched. And I've checked, and rechecked those
    and there the same, CFFILE is allowed. The weird part about it is that it
    processes all of that.. it puts the URL with the filename into the database. It
    just doesn't upload the image anymore.

    weswhite7 Guest

  5. #4

    Default Re: CFFILE Upload Suddenly Not Working

    This may be a dumb question, but does it matter what the file types are, did they change?
    Chikowski Guest

  6. #5

    Default Re: CFFILE Upload Suddenly Not Working

    file types never changed, only images allowed
    weswhite7 Guest

  7. #6

    Default Re: CFFILE Upload Suddenly Not Working

    Try removing each cffile attribute until you find the one that's causing the problem. I did this and it began working after I removed the "accept" attribute. Now I have to figure out why that doesn't work but my image is being uploaded.
    Unregistered 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