[ciapug] uploading files with php
Tony Bibbs
tony at tonybibbs.com
Mon Jul 11 08:30:49 CDT 2005
Not to side track you but you might consider using the below file:
http://cvs.geeklog.net/co.php/geeklog-1.3/system/classes/upload.class.php
It supports uploading images, resizing them on the fly, etc. It may be
a bit too 'heavy' for your needs. Anyway, does extensive mime checking
and can handle enforcement of file sizes, etc.
To see a sample of it in action go here:
http://cvs.geeklog.net/co.php/geeklog-1.3/public_html/admin/story.php
--Tony
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