473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Multiple FileUpload

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

Nov 19 '05 #1
3 1148
"=?Utf-8?B?QmFyZW4=?=" <Ba***@discussions.microsoft.com> wrote in
news:F0**********************************@microsof t.com:
How can we do it. How can i upload a list of files to the server when
i just have their physical paths only?


http://www.ondotnet.com/pub/a/dotnet...04/01/asp.html

http://www.4guysfromrolla.com/webtech/091201-1.shtml

The multiple file part - it's just a simple extension to this.

If it's too complex, there are ASP.NET upload components with all of this
rolled together.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #2
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

"Lucas Tam" wrote:
"=?Utf-8?B?QmFyZW4=?=" <Ba***@discussions.microsoft.com> wrote in
news:F0**********************************@microsof t.com:
How can we do it. How can i upload a list of files to the server when
i just have their physical paths only?


http://www.ondotnet.com/pub/a/dotnet...04/01/asp.html

http://www.4guysfromrolla.com/webtech/091201-1.shtml

The multiple file part - it's just a simple extension to this.

If it's too complex, there are ASP.NET upload components with all of this
rolled together.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/

Nov 19 '05 #3
"=?Utf-8?B?QmFyZW4=?=" <Ba***@discussions.microsoft.com> wrote in
news:88**********************************@microsof t.com:
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 ; )

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: !!bogus | last post by:
Hi, I found this code in the MSDN library. It works fine for a single upload, but I can't figure out how to make it work for multiple file uploads...can someone please help me? Just paste it...
2
by: Islamegy® | last post by:
I'm use FormView for editing a photo gallery... I add FileUpload control to upload images to the Gallery. I'm binding my Formview to objectdatasource i tried upload images onItemInserting &...
1
by: Marko Vuksanovic | last post by:
I am trying to implement an upload progress indicator using atlas, using the following workaround: http://forums.asp.net/thread/1321664.aspx This is the code in FileUpload.apsx file is as...
0
by: Christian Schlemmer | last post by:
If my code will run into the filesize-limit condition, the INSERT-statement will be executed. is there a way to avoid that? Protected Sub DetailsView1_RowInserting(ByVal sender As Object,...
0
by: deepaks85 | last post by:
Dear Friends, I am trying to upload multiple files. But I can't find why it is not working fine. Here is the code......... numfile.php <form method="POST" action="fileupload.php"> <p...
0
by: deepaks85 | last post by:
Dear Friends, I am trying to upload multiple files. But I can't find why it is not working fine. Here is the code......... numfile.php <form method="POST" action="fileupload.php"> <p...
3
by: deepaks85 | last post by:
Dear Friends, I have post this query 4 days ago......but no one replied me..... I request you all to please help me on this.............. I am trying to upload multiple files. But I can't...
0
by: swarda | last post by:
Hi all I m facing problem in attaching multiple files. I have used FileUpload control in visual studio 2005 . So i want to attach more thn one file with the same FileUpload control.Please help...
1
by: salt | last post by:
Hi... I want to send an email to multiple recipients from my database in sql server. I'm using .vb to do it.. Any suggestions on how i can use a for loop to send my email? Thanks. Dim cmdEmails...
4
rahulephp
by: rahulephp | last post by:
i think i am missing something in the below script: It shows error an do not upload files to destination: Let me know how to solve this: <?php if (isset($_POST)) { $uploadArray=...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.