473,382 Members | 1,425 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,382 software developers and data experts.

Simulate File upload (multiple files)

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
Nov 18 '05 #1
1 2533
I doubt this is possible. Without the HTMLInputFile control, the browser
isn't going to submit the file data. This is for both RFC and security
reasons.

You could write an ActiveX or WinForms control to accomplish this.
--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.
"TK" <tk******@hotmail.com> wrote in message
news:9c**************************@posting.google.c om...
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

Nov 18 '05 #2

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

Similar topics

7
by: lion | last post by:
I get these errors when uploading images via a web page: (the page still uploads the images but reports these errors?) Warning: fopen(D:\php\uploadtemp\php1FC7.tmp) : failed to create stream: No...
10
by: 3A Web Hosting | last post by:
Hi Is it possible to perform multiple file uploads via a form? It's no problem uploading single files but I want to be able to highlight a group of files and upload them all in one go. My...
2
by: Sundar | last post by:
Hi, I am working on ASP.Net. My requirement is that I want to Upload Multiple Files to the Server. I need to have ONLY ONE FILE UPLOAD CONTROL in my page. I SHOULD NOT SUBMIT THE PAGE FOR EACH...
13
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming...
0
by: Yandos | last post by:
Hello all, I'm sorry for a bit off-topic post, but curl does not have own newsgroup, so I hope someone might help me here... I need to feed form like the following using libcurl: <form...
7
by: pbd22 | last post by:
hi. i am having probs understanding how to grab a file being uploaded from a remote client. i am using hidden input fields for upload such as: <input id="my_file_element" type="file"...
0
by: pbd22 | last post by:
Hi. I am having a really tough time here and would appreciate some help. i am using an iFrame to pass a url string of files to upload to server. on the client i have created a multiple...
6
by: Milan Krejci | last post by:
while(list($key,$value) = each($_FILES)) { if(!empty($value)){ $filename = $value; $add = "upimg/$filename"; echo $_FILES; $error=copy($_FILES, $add); if (!$error)...
7
Curtis Rutland
by: Curtis Rutland | last post by:
Building A Silverlight (2.0) Multi-File Uploader All source code is C#. VB.NET source is coming soon. Note: This project requires Visual Studio 2008 SP1 or Visual Web Developer 2008 SP1 and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
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...

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.