[Catalyst] PDF upload problems (prob OT)?

Robert L Cochran cochranb at speakeasy.net
Fri Nov 7 22:50:03 GMT 2008


Jen,

Can you please keep me up to date on your solution for this. I'll soon
be attempting pretty much what you are doing now, and I appreciate your
thoughts and advice not to mention your code!

Bob



Dr. Jennifer Nussbaum wrote:
> Anyone willing to help me on this? :-) Im only missing four bytes, somewhere.... Or adding them rather.
>
> Jen.
>
>
> --- On Thu, 11/6/08, Dr. Jennifer Nussbaum <bg271828 at yahoo.com> wrote:
>
>   
>> From: Dr. Jennifer Nussbaum <bg271828 at yahoo.com>
>> Subject: Re: [Catalyst] PDF upload problems (prob OT)?
>> To: catalyst at lists.scsys.co.uk
>> Date: Thursday, November 6, 2008, 9:15 AM
>> Christopher Taranto wrote:
>>
>> --- On Thu, 11/6/08, Dr. Jennifer Nussbaum
>> <bg271828 at yahoo.com> wrote:
>>     
>>>> And then my display code is:
>>>>
>>>> # $document is already grabbed from the database
>>>> $c->res->output($document); # overloaded to
>>>>         
>> stringify
>>     
>>>> to $document->document
>>>>
>>>>         
>> $c->res->headers->content_type($document->type);
>>     
>> $c->res->headers->header('Content-Disposition'
>>     
>>>> => 'attachment;
>>>> filename=".$document->filename);
>>>>         
>>> My feeling is that you are treating the output as text
>>>       
>> when in fact a PDF
>>     
>>> file is a binary file.
>>>       
>> Im not clear on how to treat it different. The
>> Catalyst::Response docs dont say anything about how to do
>> this. What do i need to do to signal that this is a binary
>> file?
>>
>> And separately, is my "Content-Disposition" thing
>> the right way of handlign the filename?
>>
>> Thanks.
>>
>> Jen
>>
>>
>>       
>>
>> _______________________________________________
>> List: Catalyst at lists.scsys.co.uk
>> Listinfo:
>> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
>> Searchable archive:
>> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
>> Dev site: http://dev.catalyst.perl.org/
>>     
>
>
>       
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
>
>   



More information about the Catalyst mailing list