Multiple FileUpload

G

Guest

Hi!
I am developing a web application, where user inputs some data and also
attaches few files to the same data. The scenario is as below

1. User input the data for To, From etc..
2. Then clicks on browse button and selects the file to upload
3. The file name is captured and saved into a Dataset.
4. The Dataset is Bound to a Datagrid to show the files the user has attached.
5. He can attach multiple files in same way
6. Also he can delete any of the attached files


The Issue : the files should not be physically uploaded unless and until the
complete data is saved successfully to the database.

How can we do it. How can i upload a list of files to the server when i just
have their physical paths only? OR else i can have a temp folder where the
uploaded files will be stored and later moved to the correct folder? How to
track when the user has moved out of the page?? 'Coz he can click the top
DHTML dropdown menu and exit out of the page?

Please suggest??

Thanks,
Baren
 
G

Guest

Hi! Lucas,

I think you didn't get the problem correctly. First time when i am attaching
the files to the grid, the files will not be physically uoloaded to the
serevr. I will just get the file names in a string array. After saving the
input values, i want split the string and try to upload the files to the
serevr.

Baren
 
L

Lucas Tam

First time when i am attaching
the files to the grid, the files will not be physically uoloaded to
the serevr. I will just get the file names in a string array. After
saving the input values, i want split the string and try to upload the
files to the serevr.

Unfortunately you can't do it this way - the file has to be uploaded the
same time the file name is.

If you want to upload the file after the fact... you'll need to build an
ActiveX object. But this is sort of a security risk as you could
technically request any file on the clients computer ; )
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top