Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / April 2007



Tip: Looking for answers? Try searching our database.

Form File field --help

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
emmim44 - 27 Apr 2007 14:23 GMT
I have an upload page and action...when I submitted to the action page it
uploads a file to server then read the excel file then check the db if column
data already exists in db it display a msg  so when one clicks  "append the
data to the exsting db",  I forward the users to the same action page then I am
losing the value of <input type="file"  name="brw" > from the orginal page....

is there a way to keep that value through the process without refreshing the
page ?
Daverms - 27 Apr 2007 14:30 GMT
Hi,
 
      You can't set a value for the <input type="file"> control.. since the
"value" attribute is of "read-only" type..

      Meanwhile you can show the file name in a div and can place that just
below the file control..
emmim44 - 27 Apr 2007 14:58 GMT
I dont understand you..Please be more clear for the 2nd sentence...
Daverms - 27 Apr 2007 15:00 GMT
Hi Emmim44,

         I was trying to say since it is not possible to put the name of file
on the <input type="file" control.. Put up a <div> tag just below or near to
the file control and show the file value there...

          Got clarified? :)
emmim44 - 27 Apr 2007 15:40 GMT
When you show the name on main page, what is the benefit to what I am trying to succeed??
macgillivary - 28 Apr 2007 12:10 GMT
If you have already uploaded the file, why require them to upload it
again by redirecting to the page asking for the file name?  Since you
already have the file name and file on the server, place it in some
temporary directory/folder, then ask the user the 'append the data to
the existing db or create a new one'.  Based on their response take
the appropriate action on the file you have already uploaded and have
sitting in a temporary location.  This way you are uploading the file
only once, and you get around the fact that you can't place a value in
the input file type.

> ..when I submitted to the action page it
> uploads a file to server then read the excel file then check the db if column
> data already exists in db it display a msg  so when one clicks  "append the
> data to the exsting db",  I forward the users to the same action page t
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.