[thelist] best file upload practices

Theodore Serbinski stanson at gmail.com
Thu Feb 17 09:56:49 CST 2005

> > Do you guys check file names for no spaces and punctation? Allow it
> > anyways? Generate unique file names? What about retrevial?

Actually found a great PEAR class to handle this: HTTP_Upload:

After files are uploaded it can clean file names (replace weird
characters and spaces with _) and auto generate unique names as well.
Makes handle and error generation very easy. Super easy to use!

> Unless there is a burning reason to have a HTML interface to this
> location, why not use other more friendly options -- such as FTP or
> WebDAV? This way, you don't have to worry about all the annoyances of HTTP.

Client request. Basically can upload files anywhere and access without
configuring anything. Filetypes and sizes are limited so no real
worries here.


More information about the thelist mailing list