I am trying to preview an image file of a destination inserted by the user before the actual upload. <FORM name="form" ACTION="Preview.cfm" METHOD=POST><input type="file" name="file1" /> file1 contains the file destination on the user's computer. Then I am sending this destination in a form to another page where the preview is. I am using the following: <img src="#Form.file1#" width="260" height="240"> but the image is not displayed. It seems I missed something. Any help... I didnt use the enctype in the form because its affecting other inputs in the process. However if its essential for this to work, then is there any other function that would encode the file input and leave the rest as they are. Thanks.
You physically have to retrieve the image file before doing anything with it... You can however store it in memory and display that, but you still must physically retrieve the file. enctype usually messes up other form elements. If possible, pass your form variables via querystring and only pass your posted image via form post.