SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Apr 2005
    Posts
    165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    error on file upload

    Hello,

    I'm uploading a file through a form and the file named returned using File.serverFile returns a string like this:

    Code:
    C:\CFusionMX7\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\neotmp64282.tmp
    It was working fine - or so i though and now this. Any ideas? I double checked the code and I don't see anything wrong and the form looks like it is being properly submitted.

    Code:
    <!--- the directory is created (or already existed so we upload the image --->
    <cffile action="upload" filefield="imgField" destination="#application.sandboxPath#fileCabinet" nameconflict="makeunique">
    
    <!--- get name of file uploaded to server --->
    <cfset imgFile = #File.serverFile#>
    thanks in advance

  2. #2
    SitePoint Enthusiast davidorsini's Avatar
    Join Date
    Nov 2006
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try using CFFILE.ServerFile rather than FILE.ServerFile
    David Orsini
    Atlanta, GA
    Georgia Tech

  3. #3
    SitePoint Zealot
    Join Date
    Apr 2005
    Posts
    165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nope that wasn't it same problem

  4. #4
    SitePoint Zealot
    Join Date
    Apr 2005
    Posts
    165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    duh it helps if in my insert statement i reference the file and not the form field


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •