[ciapug] uploading files with php

Barry Von Ahsen barry at vonahsen.com
Sat Jul 9 14:48:21 CDT 2005


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



More information about the ciapug mailing list