[ciapug] uploading files with php
Bryan Baker
bbaker at iowalaw.org
Mon Jul 11 09:31:45 CDT 2005
Sounds like maybe your (Moz based) browser's got an inconvenient mime
type mapping.
Check in Edit->Pref's->Helper Applications and look for
application/x-pdf.
AcroExch I think is an old name for Acrobat or maybe the plugin.
On Jul 11, 2005, at 8:42 AM, Scott Phillips wrote:
> Well, this looks like it worked... kind of. IE opens it up, but
> FireFox and Netscape display an open/save dialog box with the default
> application being "AcroExch". What the heck is that? Can't find much
> useful info on it. It works, but I prefer that the docs open in
> Reader straightaway like everyone is used to. Do you have any more
> info on this?
>
> Mike, I checked and the max size looks fine at this point. (The
> documents in question are only ~900K anyway. I don't expect anything
> larger.)
>
> Thanks for your help!
>
>
> At 02:48 PM 7/9/2005 -0500, you wrote:
>> I had this error with some ftp/scp/frontpage uploaded pdfs, and some
>> googling finally turned up that in your apache mime types file you
>> have to add
>> application/x-pdf .pdf
>>
>> it should already have application/pdf
>>
>> /etc/httpd/conf/apache-mime.types on a mdk 10.1 box
>>
>> -barry
>>
>>
>> Scott Phillips wrote:
>>> OK.. I've got a script that allows me to upload files to the server.
>>> gif, jpg, txt, doc files all work perfectly. However, I get an
>>> error when trying to open uploaded PDFs: File does not start with a
>>> '%PDF-'.
>>> There are other PDFs accessible on the same server, so I don't
>>> *think* it's a mime type problem. It must get corrupted when I
>>> upload it.
>>> What's the deal?
>>>
>>> Scott Phillips
>>> Web Developer
>>> Cowles Library, Drake University
>>> (515) 271-2975
>>> _______________________________________________
>>> ciapug mailing list
>>> ciapug at cialug.org
>>> http://cialug.org/mailman/listinfo/ciapug
>>
>> _______________________________________________
>> ciapug mailing list
>> ciapug at cialug.org
>> http://cialug.org/mailman/listinfo/ciapug
>
> _______________________________________________
> ciapug mailing list
> ciapug at cialug.org
> http://cialug.org/mailman/listinfo/ciapug
>
>
--
Bryan Baker
Technology Advocate
Iowa Legal Aid
Suite 230
1111 9th Street
Des Moines, Ia 50314-2527
(515) 243-2151 (x1635)
http://www.iowalegalaid.org
bbaker at iowalaw.org
More information about the ciapug
mailing list