think it needs just the field name 'myfile' not '#form.myfile#'
--
Expert Hosting for Less!
http://exciteworks.com
Brian Yager wrote:
> I am getting an error that the form field does not contain a file.
>
> Here is the code from the first page
>
> <form action="" method="post"
> enctype="multipart/form-data" name="form">
> <input name="myfile" type="file" > > <input name="up_thefile" type="hidden" value="" id="up_thefile">
> <input name="" type="submit">
> </form>
>
> <script>
> function parseFile1Name(theFile)
> {
> var start = -1;
> while (theFile.value.indexOf("\\", start + 1) != -1)
> {
> start = theFile.value.indexOf("\\", start + 1);
> }
> document.form.up_thefile.value = theFile.value.substring(start+1,
> theFile.value.length);
> }
>
> </script>
>
> And here is the code from the second page
>
> <cfquery name="get_param" datasource="#dsn#">select value from
> class_parameter where parameter = 'FILESERVER'</cfquery>
> <cfoutput>
> form.thefile is #form.myfile# and #form.up_thefile#
> <body>
> <cffile action="" filefield="#form.myfile#"
> destination="#get_param.value#\testfile.doc" nameconflict="overwrite">
>
> </cfoutput>
>
> I am getting a value for both form.myfile and form.up_thefile. But I
> am getting
> "The form field
> C:\CFusionMX\runtime\servers\default\SERVER-INF\temp\wwwroot-tmp\neotmp60591.tmp
> did not conatin a file"
>
> I am using CFMX6.1 on a Windows 2000 Server with Oracle 9i. Has
> anyone seen this before?
>
> Thank for the help.
>
> Brian Yager
> President - North Alabama
> Cold Fusion Users Group
> http://www.nacfug.com
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

