Craig,

Here is a very basic version of the upload that is working for me ( has a script upload, and tag upload ) .. I was getting some strange uploads when using a variable in the filefield attribute.. But I am not sure what your variable is.


<cfsilent>
<cfscript>

    // if ( isDefined('form.uploadfile') ) {

// uploadedFile = fileupload( destination=expandPath('/upload'), nameconflict='overwrite' );

    // }

</cfscript>

<cfif ( isDefined('form.uploadfile') ) >
<cffile action="upload" filefield="uploadfile" destination="#expandPath('/upload')#" nameconflict="makeunique" nameconflict="skip" />
</cfif>

</cfsilent>

<form id="import" action="" enctype="multipart/form-data" method="POST">

<fieldset>

<div>
<input type="file" name="uploadfile" />
</div>

<input type="submit" value="Go" />

</fieldset>
</form>




Craig328 <mailto:[email protected]>
02 October 2013 16:05
Actually, I have not. At this point, I'm willing to try anything. The filefield attribute is a required one for cffile action=upload though, isn't it?

On Wednesday, October 2, 2013 10:17:02 AM UTC-4, Matthew Roach wrote:
--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en

---
You received this message because you are subscribed to the Google Groups "Open BlueDragon" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
Matthew Roach <mailto:[email protected]>
02 October 2013 15:17
Sorry that was supposed to be: Have you tried the file upload function WITHOUT using the file field attribute?




Craig328 <mailto:[email protected]>
02 October 2013 14:41
So, I've tried a number of different things with this issue. The current version of the CFFILE code I'm using looks like this (current version because I've tried pretty much every imaginable combination of attributes I could think of): <cffile action="upload" filefield="#SITEMAPFILE#" destination="#GetTemplatePath()#" nameconflict="makeunique">

My submitting form is set properly for the enctype.

Thing is this: if it was a permissions issue or the destination directory didn't exist or whatever, the error message would be different. I've never seen a message saying there was no appropriate file in the upload. That's what's got me puzzled.


--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en

---
You received this message because you are subscribed to the Google Groups "Open BlueDragon" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
Craig328 <mailto:[email protected]>
02 October 2013 03:26
Hi all.

I've encountered an issue this evening while trying to add a simple file upload module to a project I'm working on. Simply put, I have a form that has an input type=file on it and when I try to upload a file my code is breaking on the cffile action=upload line of the ensuing form process page. No matter what I try, I get an error saying "*There was no appropriate FILE found in the upload*". My OpenBD instance is running on a Linux box against a Tomcat server.

I've written lots of file upload forms before and my code is correct. The error occurs regardless of the file I try to upload or the destination directory i try to stick it into. Google has been singularly unhelpful with this error message.

Does anyone have any idea what I'm doing wrong or what I might look at to fix this? Any help would be greatly appreciated.

Thanks in advance.

Craig
--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en

---
You received this message because you are subscribed to the Google Groups "Open BlueDragon" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en

--- You received this message because you are subscribed to the Google Groups "Open BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to