Mad_T;11010069 wrote:I've restricted it to .txt
Out of curiosity, how did you go about doing that? If you only made a change in the client-side markup (e.g. the HTML), then note you really haven't "restricted" anything at all. (Who says someone that wants to upload "my_nasty_virus.exe" isn't going to alter your client-side markup - or even ?)
Mad_T;11010069 wrote:but I can't work out how to change the width.
If you're talking about the style of the <input> element itself, you're probably out of look - a lot of CSS/scripting access has been limited to INPUT elements with the "file" type in order to protect user security. (Grabbing files off your hard drive and sending them over the World Wide Web can be a security nightmare, after all.)
Mad_T;11010069 wrote:or how to set to show only files with Report in the name !
Again - this might not be possible using standard HTML due to security restrictions. In the past, the only suggestion I've seen to gain more control over the file upload dialog and/or display is to resort to using some sort of embedded Flash/Java object rather than the standard INPUT element.