cffile and uploading a jpg on my hosting server?

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default 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. jpg) I can get to work locally (and on my
    testing server on my pc) but how do you set this up so that you can use the
    technique while your site is online at a CF hosted server. I know it has to do
    with the "destination=" line. Does the file path of my root folder go here?
    [url]http://mysite.com/[/url]... it seems like it would need user validation in the code.
    I simply want to make a form where a user can upload a pic to the server. The
    input form is already on that server. Is this something my hosting company
    needs to give me file paths? Any idea on where I'm going wrong. Thanks.

    P.S. When I use \temp as the destination the file says it uploads successfuly.
    Now where it actually went? I can't seem to find anywhere the new file would
    be.

    AWZ 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 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...
    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. uploading fiels from one unix server to another server usin perl cgi script.
      Hi all, I have a task at hand , that of uplaoding file from server to another server and also pass 6 paramteres along with the file. ...
  3. #2

    Default Re: cffile and uploading a jpg on my hosting server?

    This is not correct:

    destination="\temp"


    It needs to be the full server path on the server, such as :

    destination="c:\website\temp

    Abinidi 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