Print Page | Close Window

form file object problem

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=4861
Printed Date: 30 March 2026 at 1:26pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: form file object problem
Posted By: ultramods
Subject: form file object problem
Date Posted: 08 August 2003 at 3:01am

Wondering if anyone can help. Trying to create a user admin where users can update ther details by reading in there current name address etc into form file fields-this works ok. However when i try and read a value into the form object file it doesnt dislay the value on the page.

<input name="PDFLink" type="file" value="<% = rs("PDF_LINK") %>">

Does anyone know how to do this.

Thanks for any help.




Replies:
Posted By: MorningZ
Date Posted: 08 August 2003 at 7:23am

i dont really understand what you are trying to do, but i can tell you that the above line of code you tried absolutely will not work, you cannot "pre fill" a file control, the control is a designed for the user to select a file off their harddrive... not have code go get the file

it'd be a HUGE security hole otherwise



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: ultramods
Date Posted: 08 August 2003 at 7:44am
Ok Thanks, I thought that would be the case but just thought I would check to see if there is any way of by passing it. The reason I want to do it is because the app is on an Intranet. So security in that respect isnt a problem. the reason i wanted to populate the field was so if the users are updating other details and see that field blank, wont be tempted to browse to the file again etc. Also the field doesn't upload a file- just grab the link.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net