[ciapug] uploading files with php
Scott Phillips
scott.phillips at DRAKE.EDU
Mon Jul 11 08:42:32 CDT 2005
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
More information about the ciapug
mailing list