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

  1. #1

    Default Wierd update names

    I UPLOAD a file and UPDATE the record in my database. I uploaded a file called
    test, and in my upload folder its named test but in my database it looks like
    this C:\WINDOWS\TEMP\ACF1D92.tmp. Here is my code.

    <cf_fileupload
    userid = "justin.nickrand"
    password = "jnpeanut"
    filefield = "form.filename"
    destination = "/thumbautotrading_com/www/upload"
    nameConflict = "MakeUnique"

    <cfquery datasource="A9819_myDSN" name="Process">
    UPDATE CustTable
    SET AutoDescription = '#form.filename#'
    where CustTable.CustId = #Session.CustId#
    </cfquery>

    I know in my upload file I make it Unique but I need to in order to keep it
    seperated from other files with the same name

    CF Nut Guest

  2. Similar Questions and Discussions

    1. Wierd Box
      Hi, I've gotten a bit better at this. But now I come with a problem(when don't I). I have this wierd box displaying at the bottom of my page. Thing...
    2. wierd problem
      > strMdate = strmonth & " " & strday & " " & stryear What kind of date is that? 6 5 2003 is not a proper date format. Try: strMdate =...
    3. Machine names v. User names
      Good Morning... Unfortunately one of our mainframe processes require a local machine name that is identical to the local user account name. For...
    4. Wierd Safari bug
      Have you tried deleting your Safari preferences file?
    5. wierd error.....help please.....
      have been working with a site and today started getting an error when uploaded page on the live server...everything works well locally... The XML...
  3. #2

    Default Re: Wierd update names

    Use:
    SET AutoDescription = '#cffile.ServerFile#'
    I would hope that cf_fileupload would make the same variables
    available as cffile. I'm not familiar with cf_fileupload.



    OldCFer 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