[ciapug] Re: uploading files with php

Mike Parks parksmike at dwx.com
Sun Jul 10 20:20:11 CDT 2005


Scott
What is your  post_max_size  set to? You may need to increase this as well 
as the  upload_max_filesize  Default  upload_max_filesize  is 2Mand 
post_max_size  is 8M default. So you will want to make it at least that much 
above the upload_max_filesize

Mike


----- Original Message ----- 
From: <ciapug-request at cialug.org>
To: <ciapug at cialug.org>
Sent: Sunday, July 10, 2005 12:00 PM
Subject: ciapug Digest, Vol 3, Issue 2


> Send ciapug mailing list submissions to
> ciapug at cialug.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://cialug.org/mailman/listinfo/ciapug
> or, via email, send a message with subject or body 'help' to
> ciapug-request at cialug.org
>
> You can reach the person managing the list at
> ciapug-owner at cialug.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ciapug digest..."
>
>
> Today's Topics:
>
>   1. uploading files with php (Scott Phillips)
>   2. Re: uploading files with php (Barry Von Ahsen)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 08 Jul 2005 15:48:09 -0500
> From: Scott Phillips <scott.phillips at DRAKE.EDU>
> Subject: [ciapug] uploading files with php
> To: ciapug at cialug.org
> Message-ID: <5.2.0.9.0.20050708154126.0208b598 at mail.drake.edu>
> Content-Type: text/plain; format=flowed; charset=us-ascii
>
> 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
>
>
>
> ------------------------------
>
> Message: 2
> Date: Sat, 09 Jul 2005 14:48:21 -0500
> From: Barry Von Ahsen <barry at vonahsen.com>
> Subject: Re: [ciapug] uploading files with php
> To: ciapug at cialug.org
> Message-ID: <42D02A05.4060209 at vonahsen.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> 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
>
>
> End of ciapug Digest, Vol 3, Issue 2
> ************************************ 



More information about the ciapug mailing list