bad guess amigo :)

but seriously, I'm merely hitting a method in my main controller that
does stuff for this site.
works in safari 100% of the time!!! just not chrome.

weird.

                                                 <cftry>
                                                
                                                        <cfset request.result = 
application.admin.addPDF(form.name,
cffile.serverfile, dateFormat(now(),'mm/dd/yyyy'), form.publishDate,
form.categoryId) />
                                                        
                                                        <cfif request.result>
                                                                
                                                                        
                                                                <cflocation url 
=
"index.cfm?step=viewPDFFiles&fileUploaded=#form.name#" />
                                                                
                                                        <cfelse>
                                                                
                                                                <cflocation url 
= "index.cfm?step=viewPDFFiles&fileUploaded=0" />
                                                                                
                        
                                                        </cfif>
                                                        
                                                        <cfcatch type="any">
                                                                
                                                                <cflocation url 
= "index.cfm?step=viewPDFFiles&fileUploaded=0" />
                                                                
                                                        </cfcatch>
                                                        
                                                </cftry>




On Mon, May 7, 2012 at 10:27 PM, Dave Watts <[email protected]> wrote:
>
>> im sending a file to my server with the following code:
>> <cffile action="upload"  destination="d:\webserver\doman.com\www\docs"
>> nameconflict="overwrite" filefield="pdf_file" attributes="readonly" />
>>
>> the result of this when I browse the file in chrome and safari (on my
>> mac) both result in a "Failed to Load PDF Document" error.
>>
>> ...
>>
>> *when I use CFFILE, the file actually appears on the server, and i can
>> see the file, with filesize as I would expect it.
>
> My conclusion would be that, since the file upload is in fact working,
> the problem is being caused by the code after the file upload.
> Specifically, I'd guess that you're trying to render the PDF you just
> uploaded. Do you really need to do that in the same operation?
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> http://training.figleaf.com/
>
> Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
> GSA Schedule, and provides the highest caliber vendor-authorized
> instruction at our training centers, online, or onsite
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:351045
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to