T
TK
I have a file upload control to allow a user to select/upload a file
to the server. They need to upload x number of files in one shot
because they have to confirm that they are uploading x number files
for processing. So I do not want the files to be uploaded until the
user presses a submit button verifying that they want to submit x
number of files for processig (processing refers to me doing something
to the files once uploaded). Catch is that I only want one input file
control which adds the filename of the file to be uploaded to a
datagrid and only uploads all the files when the user clicks a cubmit
button.
Right now I have a datatable that is kept in viewstate that keeps
track of the files (filename and full client-path of the file to
upload) the user has added. The datatable is bound to a datagrid which
displays a delete button (to remove a file from the list of files to
upload) and the actual name of the file being uploaded.
So is there a way to accomplish this without creating a HTMLInputFile
control for every file that is to be uploaded? The datatable also
stores the full path of the file (e.g. c:\somedir\clientfile.txt) that
the user selected using the file upload browse button. I basically
need to simulate the file upload process using the filenames (with
full path) from the datatable. Is this possible or is there a
different way of accomplishing this?
Thx in advance for any help.
Tom
to the server. They need to upload x number of files in one shot
because they have to confirm that they are uploading x number files
for processing. So I do not want the files to be uploaded until the
user presses a submit button verifying that they want to submit x
number of files for processig (processing refers to me doing something
to the files once uploaded). Catch is that I only want one input file
control which adds the filename of the file to be uploaded to a
datagrid and only uploads all the files when the user clicks a cubmit
button.
Right now I have a datatable that is kept in viewstate that keeps
track of the files (filename and full client-path of the file to
upload) the user has added. The datatable is bound to a datagrid which
displays a delete button (to remove a file from the list of files to
upload) and the actual name of the file being uploaded.
So is there a way to accomplish this without creating a HTMLInputFile
control for every file that is to be uploaded? The datatable also
stores the full path of the file (e.g. c:\somedir\clientfile.txt) that
the user selected using the file upload browse button. I basically
need to simulate the file upload process using the filenames (with
full path) from the datatable. Is this possible or is there a
different way of accomplishing this?
Thx in advance for any help.
Tom