943,530 Members | Top Members by Rank

Ad:
  • ColdFusion Discussion Thread
  • Unsolved
  • Views: 1591
  • ColdFusion RSS
Jun 19th, 2009
0

using HTML input type = "file"

Expand Post »
I'm creating an input form for users so that they can input various bits of info into a db. One of the fields is so that they can upload a file, which puts the file onto the web server and the path to it into the db. The problem is if anyone edits the data after a file has been uploaded, the path to the file gets overwritten in the db with an empty string. I get round this problem in all other entry fields by pulling the data out the db and putting in the form entry box, but can't find a way to do this using the input type = "file" tag. Does anyone know how to do this?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vikingGirl is offline Offline
5 posts
since Dec 2008
Jun 21st, 2009
0

Re: using HTML input type = "file"

Why can't you pull the data out for the file location and put that in the entry field if it's just a text url?. you can do an if else statement so if that field is blank in the form it doesn't execute the write to database action for that specific field
Reputation Points: 12
Solved Threads: 36
Posting Pro in Training
freshfitz is offline Offline
436 posts
since Sep 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ColdFusion Forum Timeline: Form Field replacing Blank with a "+"
Next Thread in ColdFusion Forum Timeline: Cf8 + cfldap





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC