Form file input - differences Netscape / IE and Windows / Linux
Posted on 2002-04-10
I have the simplest of forms:
<form name="selcfg" method="post" action="./my.cgi" enctype="multipart/form-data">
The issue is the FILE type input. There are several differences in how this is handled, prompting the following questions:
1) When the file upload dialog opens, can I control the default "files of type"? On IE it's "All Files (*.*)", on Netscape it's "HTML Files". I'd prefer choosing my type.
2) Can I control the starting directory of the file upload dialog? On IE its My Computer, on Netscape it's a directory that is part of the Netscape tree.
Finally, and MOST IMPORTANTLY:
3) On Windows (Netscape or IE) my CGI script gets the fully qualified file path name: "\yada\yada\myfile".
On Linux (Netscape) my CGI script gets only the file name, no path: "myfile". Can that be changed?
My CGI script is written in Python, by the way.