Coldfusion Error: String index out of range

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ndeeley
    New Member
    • Mar 2007
    • 139

    Coldfusion Error: String index out of range

    Hello,

    I recently moved my scripts over to a server running Coldfusion MX instead of 5. Now the scripting I'm using to upload a file doesn't work. I've checked it and it all looks okay - any ideas why it isn't working?

    The path quoted by the CF variable is an absolute one:

    //marlin/assetinl/scripts/TaskBank/Docstore

    Code:
    <cfoutput>
    <cffile action="upload" fileField="FileToUpload" destination="#getPath.UploadPath#" nameConflict="MakeUnique">
    </cfoutput>
    Thanks
    Neil
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Do you have a physical location that this path corresponds to? This error seems to indicate a problem with the destination path.

    Comment

    • ndeeley
      New Member
      • Mar 2007
      • 139

      #3
      Hi acoder,

      I have the path, but its not drive letter specific, as everyone has the drive mapped to different letters. The full path is http://marlin/assetinl/scripts/TaskBank/DocStore

      Would that still work, or would i have to map to a drive letter?

      Thanks

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        What about the drive letter on the server machine?

        Comment

        • ndeeley
          New Member
          • Mar 2007
          • 139

          #5
          Thanks acoder - I missed looking at using the drive letter on the server: I muddled it with the drive it was mapped to on my machine. All fixed now.

          Thanks for your persistance!

          Comment

          Working...