Wrap the CFFILE (and related code) in a cftry.  You can also wrap the code in a 
CFIF and say basically <cfif form.file is not ""> 

Robert Harrison 
Director of Interactive Services

Austin & Williams
Advertising I Branding I Digital I Direct  
125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788
T 631.231.6600 X 119   F 631.434.7022   
http://www.austin-williams.com

Blog:      http://www.austin-williams.com/blog
Twitter:  http://www.twitter.com/austin_williams 


-----Original Message-----
From: Raymond Camden [mailto:[email protected]] 
Sent: Thursday, August 02, 2012 11:21 AM
To: cf-talk
Subject: Re: Empty file upload field causing 403 error.


Can you share your processing code?

On Thu, Aug 2, 2012 at 9:47 AM, Dean Lawrence <[email protected]> wrote:
>
> Thanks Russ, but unfortunately, that did not change anything.
>
> On Thu, Aug 2, 2012 at 10:36 AM, Russ Michaels <[email protected]> wrote:
>>
>> I seem to remember a bug whereby the file upload field needs to be in 
>> a specific position, i.e. the first field on the form (or perhaps the 
>> opposite), otherwise you get issues like this.
>> so give that a try and see if it helps.
>>
>>
>> On Thu, Aug 2, 2012 at 3:32 PM, Dean Lawrence <[email protected]> wrote:
>>
>>>
>>> I am about at my wits end with this. I have a weird scenario in that 
>>> I have a simple form that allow for uploading a logo and adding a 
>>> couple of fields of copy. When I choose a file and submit the form, 
>>> everything works fine, the logo is uploaded and the form fields are added 
>>> to my database.
>>>
>>> The problem arises when I try to just update the text fields and do 
>>> not upload a logo. When I submit the form the server is giving me a 403 
>>> error.
>>> I get this error on both apache and IIS, both Mac and PC. It doesn't 
>>> If I remove the file field, the form works fine. If I leave the file 
>>> field in place, but remove the multi-part form designation, the form 
>>> work fine. If I submit the form with a new file, the form works 
>>> fine, it is just when I try to submit the form without attaching a file.
>>>
>>> Any suggestions?
>>>
>>>
>>>
>>
>>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352041
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to