On 4/17/06, Xav <[EMAIL PROTECTED]> wrote: > > Hello, > I would like to filter the files uploaded, I thought a good way was to > use the file content type but I realized that it is often > application/octet-stream regardless to the file uploaded (.doc, .xls, > .pdf, .txt...). > > Am I obliged to filter based on the file extension or there is something > to tweak to get a more explicit content-type value?
The content type for an individual part is specified by the browser (or other client), so to affect it, you would need to modify the browser's settings. Unless you have a very controlled user base, that's probably not practical, so you'd need to determine the actual content type yourself. -- Martin Cooper Thanks > > Xavier > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
