The HTML element <input type="file"> has a nice little browse feature
that allows the user to browse for the file to be uploaded. However,
it doesn't seem to be quite so well endowed when it comes to
determining the file name to be assigned to the uploaded file. In the
particular case with which I am dealing, the directory into which the
uploaded file is to be placed is pre-determined, so that's not an
issue. However, the name to be assigned to the uploaded file is
another matter. At present, I am collecting that information in a
separate <input type="text"> element which I have labeled "Save As:"
This seems to leave a bit to be desired. It would seem to me that by
far the most common case would be where the user wants to have the
uploaded file share the same name on the remote system that it has on
the local system. Hence, I think the best thing would be to somehow
pre-populate my text field for collecting the file name with that
name. I have no idea how to do that. If anyone has any suggestions,
I'd love to hear them. I would also be interested in hearing about
other approaches that others are using to address this issue.
Thanks for any input.