By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,148 Members | 759 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,148 IT Pros & Developers. It's quick & easy.

Coldfusion Error: String index out of range

100+
P: 139
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

Expand|Select|Wrap|Line Numbers
  1.  
  2. <cfoutput>
  3. <cffile action="upload" fileField="FileToUpload" destination="#getPath.UploadPath#" nameConflict="MakeUnique">
  4. </cfoutput>
  5.  
  6.  
Thanks
Neil
Mar 7 '12 #1

✓ answered by acoder

What about the drive letter on the server machine?

Share this Question
Share on Google+
4 Replies


acoder
Expert Mod 15k+
P: 16,027
Do you have a physical location that this path corresponds to? This error seems to indicate a problem with the destination path.
Mar 26 '12 #2

100+
P: 139
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
Mar 28 '12 #3

acoder
Expert Mod 15k+
P: 16,027
What about the drive letter on the server machine?
Mar 28 '12 #4

100+
P: 139
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!
Mar 30 '12 #5

Post your reply

Sign in to post your reply or Sign up for a free account.