Robert F Harwood commented on Jan 13, 2012

Re: Limiting MIME types with IBM Lotus Domino 8.5 XPage file upload control

checked

Steve Cochrane commented on Oct 20, 2011

Re: Limiting MIME types with IBM Lotus Domino 8.5 XPage file upload control

Hello!

Works fine, however the document is still being submitted. How can you prevent someone from adding one of the MIME types other than what you specify?

In my case, I'm using PDF's, so I set the "accept" and "mimetype" to "application/pdf". I can select whatever file type I want, but only PDF's will be accepted. How can we prevent anything other than PDF's be added?

Thanks!

Steve in NYC

Daniele Grillo commented on Jul 19, 2010

Limiting MIME types with IBM Lotus Domino 8.5 XPage file upload control

I have the problem in Internet Explorer(7.X and 8.x)

The control don't work...it's normal?

Kevin Giles commented on Mar 10, 2010

Limiting MIME types with IBM Lotus Domino 8.5 XPage file upload control

I know that in the property section of the upload control the "file" property will set the file name of the file being uploaded. I will have to dig a bit to see if you can get the actual file name.

Robert Shaver commented on Mar 5, 2010

Limiting MIME types with IBM Lotus Domino 8.5 XPage file upload control

This is very helpful. Question: is there any way to check the file name of the upload?

I've had a system in production for about ten years. When the user uploads the file, I save it to disk in order to rename it, then reattach it to the document. The agent that does this sometimes crashes so the file doesn't get renamed. It always occurs on files with very long names. Or it might be some characters in the name that aren't permitted.

Anyway, I'd like to be able to check the file name before I save it to disk with a new name.

An alternative would be, can I rename an attached file without saving it to the server disk?

Thanks,

Rob:-]