?
Solved

CFFILE Upload error  "String Index out of range:  -18"

Posted on 2006-05-25
2
Medium Priority
?
699 Views
Last Modified: 2013-12-24
I am attempting to use CFFILE to upload an MS Excel file from my PC to a server.  Unfortunately, I am getting the "String Index out of range:  -18" error.  Code is below.

<cffile action="upload" filefield="fileupload" destination="\\server\xxx\yyyy" nameconflict="overwrite">

In the form struct the "fileupload" variable looks as if it is set to this:

C:\CFusionMX\runtime\servers\default\SERVER-INF\temp\wwwroot-tmp\neotmp17919.tmp

I would expect something like C:\foldername\file.xls

Help is greatly appreciated!
0
Comment
Question by:dkbailey1
2 Comments
 
LVL 9

Accepted Solution

by:
73Spyder earned 1500 total points
ID: 16762841
http://www.experts-exchange.com/Web/WebDevSoftware/ColdFusion/Q_21706616.html

Take a look at this question/solution.  It might help
0
 

Author Comment

by:dkbailey1
ID: 16763118
I read through this earlier.  I apparently have gotten lucky, in that I took part of the path from CGI.CF_TEMPLATE_PATH, and appended it to my folder\file in the destination source of CFFILE.  It works now, but I still do not grasp why I have ended up with a string that starts with a Drive letter, and not one where I use //servername/etc.

Can you help clarify what is going on?
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question