|
| krishnaprasadaccot@gmail.com : On March 06, 2008 2:18 PM said: |
In this video when you list the uploaded images, in uploaded folder, Only the name of the files are different,but the images looking identical . Is that a problem with my browser, or you skipped that one?
|
|
|
| sagesmith : On March 11, 2008 12:28 PM said: |
Interesting, however I fail to see any ASP.NET 2 specific innovation. When I saw the title I thought for a minute the IE browser's common file dialog was going to support multiple file selections. Now that would be video worthy! It would really be a powerful enhancement and a huge step forward for browser-based applications. I'm sure this will be a much appreciated feature for Internet sites which take a long time to upload individual files. However for Intranet sites where the actual posting of files is quick the differences between hitting an upload button five times versus requesting 4 additional inputs then hitting an upload button is hardly worth the effort. The frustration exits because the OS version of the common file dialog (multiple file selection, file type filtering at the dialog level, etc.) is much more robust than the browsers.
|
|
|
| pradeepkr : On March 13, 2008 12:22 PM said: |
There's an error in the C# code available for download at line 31. There's no variable named 'file', instead it should be 'uploads[i]' in place of 'file'.
|
|
|
| JoeStagner : On March 15, 2008 12:45 PM said: |
sagesmith - It's not new magic. Jst a series of techniques that developers can use.
pradeep - I know about the code error and the file is being updated. Thanks
|
|
|
| ericdow : On March 24, 2008 1:16 PM said: |
I think a tutorial on how to do multiple uploads to a database would be a good idea.
|
|
|
| ericdow : On March 24, 2008 1:19 PM said: |
Sorry there is a tutorial on doing this site.
|
|
|
| daddyqbob50 : On March 29, 2008 4:21 PM said: |
Joe
I want to upload all files from a certain client-side folder. I do not want the user to have to data enter the file names as there could be many small files. Is there any way to do this via ASP.Net? In other words how do I populate the HttpContext.Current.Request.Files collection using client script?
I have asked several ASP.Net "gurus" abou this and they do not think it is possible due to browser security restrictions. Yet the upload control does it just fine.
Thanks
|
|
|
| Talib_dotnet : On April 03, 2008 7:01 AM said: |
Hi Joe,
Awesome video .. You rock...
One thing i wanted to know is that ..can we develop the same with ASP.NET's FileUpload Control instead of HTMLFile Control....
Waiting for your reply..
Thanks..
|
|
|
| aguila1976 : On April 24, 2008 9:09 AM said: |
This code doesn´t seem to work with c# in VS2008. It works uploading one file, but not several at one time.
I did as pradeepkr and changed 'uploads[i]' in place of 'file'.
I do get some strange warning, in the end of the behind code:
catch(Exception Exp)
{
Span1.InnerHtml = "Upload(s) FAILED.";
}
"The variable 'Exp' is declared but never used"
Anyone else tried it in VS2008 with c#?
|
|
|
| mak101 : On April 25, 2008 4:29 AM said: |
It's great !
However, if I just want to upload all files from a certain client-side folder, is there a video to show it?
|
|
|
| TheDecline02 : On May 07, 2008 11:03 AM said: |
This code dosen't actually work...
1. You are trying to assign HttpPostedFile to a varible called file which dosen't even exist.
2. You are only changing the filename of the saved file and not the actual file itself. So you are only uploading one file multiple times.
3. You are using Visual Studio 2008 which is .NET 3.5 and the video is labeled as ASP.NET 2.
Therefore this video is useless.
|
|
|
| dtcs1 : On May 20, 2008 6:44 PM said: |
I have tried the C# code and it does NOT WORK!
|
|
|
| aftab : On May 24, 2008 12:07 PM said: |
|
|
|
|
| shweko : On June 01, 2008 7:47 PM said: |
The way you called javaScript function is beautiful.
|
|
|
| zhngmm : On June 04, 2008 5:12 PM said: |
works good on me, thank you very much
|
|
|
| dw.egun : On June 05, 2008 4:52 AM said: |
Thanks for the videos. It's awesome dude......
|
|
|
| pakpatel : On June 22, 2008 12:28 AM said: |
Hi, JoeStagner
C# Program not working.So can you fix that error on buttion click event.
-Thanks
|
|
|
| abhishek0410 : On July 02, 2008 1:43 PM said: |
I want to upload all files from a certain client-side folder. I do not want the user to have to data enter the file names as there could be many small files. Is there any way to do this via ASP.Net?
or
i wan to select multiple image at once....can u tell me another way.....if i hav folder which contains images......n i browse the folder and see the all the images of that folder in thumbanil in another form and then select multiple images or select all images(like we do while selecting or deleting files on harddisk) from that form and then insert into database???? is this possible??????
|
|
|
|
|
| sobriquet : On August 13, 2008 9:25 AM said: |
Dear Joe,
Great Job but i am facing a problem.
I am inserting these uploaded files in a database,
and whenever i upload multiple files,i get all the different file names, but the picture or file itself is the same.
can you give me any tips??
|
|
|
| muhammed : On August 14, 2008 6:46 AM said: |
any one help me upload files and save then to sql server
|
|
|
| ultravi0let : On August 14, 2008 12:53 PM said: |
Hello,
I followed part 1 and 2, great job! :)
I'm trying to add a validation for the file type. I added this code on btnSubmit_Click:
string FileExtention = System.IO.Path.GetExtension(upload.FileName);
if (FileExtention != ".jpg")
{
lblMessage.Text = "only .jpg files";
return;
}
I'm on the case when the user selects many files.
The thing is, when the user gets the message "only .jpg files", input controls are blank and the user has to select all the files all over again..
How do I keep the values on the input controls, so that the users corrects only the wrong selection(s)?
Thanks in advance.
Regards,
Sanaa RAMZI
|
|
|
| ccoe1 : On September 08, 2008 4:19 AM said: |
Great Post, works like a charm. I was wondering how to adjust the javascript to have a remove button next to the upload field to remove those created uploadfields if desired.
Thanks heaps,
Chris
|
|
|
|
|
| someguy198650 : On September 17, 2008 12:51 AM said: |
@ultravi0let
did you already solve ur problem, im having the same requirement.
can u please post your solution if any?
|
|
|
| ellmo : On September 22, 2008 5:51 AM said: |
Using C# code under mvs2008:
Compiler does not like the
HttpPostedFile upload = file;
line, which quite obviously should be changed to
HttpPostedFile upload = uploads[i];
works for me.
|
|
|
| ahjeck : On September 27, 2008 5:26 AM said: |
In the C# code, it appears that the original <input> box is missing a 'name' attribute. Without this attribute, it doesn't seem to count the number of files correctly...at least for me.
|
|
|
| mengjun599242482 : On October 07, 2008 8:56 PM said: |
It's very useful to me.
Thanks!
|
|
|
| finestkatch4u : On October 28, 2008 5:55 AM said: |
I guess there is a little problem.
every file is uploaded twice, but we don't note it as the second file overwrites the first one.
you can see it if you display the confirmation message for every upload using a loop or make an entry in database.
for each file there two entries in database.
Please someone correct it.
|
|
|
|