thanks for your response
the file does not get uploaded and yes i'm dealing with javascript. i have two IFRAMES. one has a form input like this:
<INPUT TYPE=FILE NAME="uploaded_file" onchange="preview_local_file(this.value);">
the javascript routine reloads the other IFRAME with an argument like this:
function preview_local_file(localfile) {
window.frames['image_preview'].location = "image_preview.php?img=file://" + escape(localfile) + "&local=1";
}
the resulting code in the preview file needs to take that argument (img is a path on the user's machine to an image file) and display it. the resulting image tag looks something like this:
<IMG SRC="file://C:\my documents\images\my_image_file.gif">
the file does not get uploaded, it is merely displayed by referring to a local file. the problem i'm having is that windows machines will use backslashes, macs something else, etc. i need to check to see if the user has already uploaded a file with this name so that i don't overwrite it.