 |

|
Fantastic article.Wonderful!
|
|
|
|

|
Thank you very much for your appreciation.
sunaSaRa Imdadhusen
+91 99095 44184
|
|
|
|
|

|
Thanks for your appreciations
sunaSaRa Imdadhusen
+91 99095 44184
|
|
|
|

|
this code works great in c#. but when i convert it in vb.net ,it gives error in <script type="text/javascript">
function pageLoad(sender, args) {
window.parent.register(
$get('<%= this.form.ClientID %>'),
$get('<%= this.fileUpload.ClientID %>')
);
}
</script>
Error 1 'this' is not declared. It may be inaccessible due to its protection level.
|
|
|
|

|
Following are the VB.Net version
<script type="text/javascript">
function pageLoad(sender, args) {
window.parent.register(
$get('<%= Me.form.ClientID %>'),
$get('<%= Me.fileUpload.ClientID %>')
);
}
</script>
sunaSaRa Imdadhusen
+91 99095 44184
|
|
|
|
|

|
Thank you very much
sunaSaRa Imdadhusen
+91 99095 44184
|
|
|
|

|
Really good stuff !
You are the only one to propose such a clear stuff !
Thank you very much
|
|
|
|

|
Thank you very much for your appreciations.
sunaSaRa Imdadhusen
+91 99095 44184
|
|
|
|
|

|
Dear Sunasara,
could you please help me to adapt the code for FTP upload?
I'm new to .net
Thank you
Silvia
|
|
|
|

|
This is not real time. The file is uploaded to the server, and then the progress bar is initialized.
|
|
|
|
|
|

|
Thanks
sunaSaRa Imdadhusen
+91 99095 44184
|
|
|
|
|

|
clear, quickly and easy to integrate.
|
|
|
|

|
Your appreciations will encourage me to share my knowledge to the community
sunaSaRa Imdadhusen
+91 99095 44184
|
|
|
|

|
Hi, thanx for the article! its great!.BUT.... when i tested locally it all looked good. once i tried on the server this is what happens.(this is noticed more with LARGE files) the progressbar gets to 100% and says INITIALIZING Upload..., now nothing happens, seems like the file is beeing uploaded to something(????) then once thats finished(which can take awhile cuz its a large file-300mb) then the progressbar starts working nicely. WHAT IS HAPPENING WHEN I CLICK UPLOAD? HOW CAN I GET THE PROGRESSBAR TO START WORKING FROM THEN? THANX! Judy
|
|
|
|

|
This is because file is uploaded to the server first(This is, why it takes so long and depends of data you are posting. Locally can get quickly but in real environment it depends form server throughput.). Just after upload is completed, it starts writting to the fileStream. While doing this the uploadStatus object stored in session is updated. Now ajax requests to the webservice can get place and read progress from this session object. I think that this solution is not what everybody are looking for.
modified 17 Nov '12 - 13:08.
|
|
|
|

|
So, this doesn't show the progress of the upload. The file is uploaded first, and then you see the progress of copying the file from the Stream (which would be a temporary file of IIS) to the specified location.
In ASP .NET 4.0 you can actually monitor the upload progress, as you can see in this article:
http://vanacosmin.ro/Articles/Read/AjaxFileUpload[^]
|
|
|
|

|
It is not upload progress bar. It is a progress bar of saving file byte-by-byte after real upload to IIS already complete...
|
|
|
|
|

|
I fill encouraged
sunaSaRa Imdadhusen
+91 99095 44184
|
|
|
|

|
Hi , how to limit file upload size , i mean when the user wants to upload a file that exceeds " maxRequestLength " he will get an error message " Selected file is too big " .
many thanks
|
|
|
|

|
Can we use this to upload multiple files in asp.net website?i.e., can we select multiple files in the file dialog box?
-Manognya
__________________________________________________
$ God gives what is best.Not what all you wish
|
|
|
|

|
Worked like a charm! Thanks
|
|
|
|

|
This not works at real time, this Uploads a file to server once, and the progress bar is only for server writting already uploaded file to the disk
thanx for trying , but is no tfunctional
|
|
|
|

|
Thank you, I appreciate your article so much.
|
|
|
|

|
Hi, really very nice piece of code , i just wanted to add an extra feature :
How could i Calculate the md5 checksum of the file being uploaded and then save this MD5 value into the Database ?
yours,randy
|
|
|
|

|
Hello, Sunasara Imdadhusen
Very very good component.
but when i try upload file about >10 MB , I need wait long time .
Progress bar goes to 100% and shows message Initializing upload ....
after few minutes shows size length and works good.
on my local machine it works very fine. Problem is only on server.
May be problem in web.config adjustment?
May you help me?
Thanks
Oleg
|
|
|
|

|
I'm having the SAME problem.. looks like engine file doesn't work asynchronous
|
|
|
|

|
Need to fix Error with pages using masterpages
|
|
|
|

|
First i'd like to thank you for your greate work (: .
________________________________________________________
your control working fine in a normal forms but if i trying to move it to user control "that mean i want to create a user control hold the the code and design in the Default.aspx" it done but i got an error on Click "Upload" in the check file exists function in the java script code :
function fileExists() {
var selectedFile = fileUpload.value.split('\\');
var file = $get('gvNewFiles').getElementsByTagName('a');
for (var f = 0; f < file.length; f++) {
if (file[f].innerHTML == selectedFile[selectedFile.length - 1]) {
return file[f].innerHTML;
}
}
return '';
}
the "file" object return null !! i can't resolve it ?/?
Also When i use the control on form inherited from masterpage i got the same Erorr.
any one can help ?????
Mr:wsd
|
|
|
|

|
Having exactly the same problem. I've noticed that this was assked in earlier messages but not responded. Appreciate for any advice ?
|
|
|
|
|
|

|
try
var file = $get('ctl00_MainContent_gvNewFiles').getElementsByTagName('a');
Let me know how you go
|
|
|
|

|
Hello Sunasara Imdadhusen,
Your component is very good and has met the projects I've done.
And I'm trying to implement a system using it, but I'm having trouble uploading files larger than 200MB.
Will some setting that has to change?
My changes:
<httpRuntime
executionTimeout = "3600"
maxRequestLength = "2097151" />
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="6048560"/>
</ requestFiltering>
</ security>
I am using framework 3.5.
If possible give me your email so we can talk directly.
Thank you and congratulations for the project.
My development environment:
Win7 - Visual Studio 2008 - ASP NET FrameWork 3.5 - IE9
|
|
|
|

|
Could you find a solution? I am facing similar problem. I am trying to upload a file of 1GB in size but am getting OutOfMemoryException with fileUpload.FileBytes.
|
|
|
|

|
very nice article...
|
|
|
|

|
I have a Db with tables for service projects. Using filters each project's data can be viewed individually by way of Query string like /Details.aspx?ID=Proj1
How do U get to separate uploads for each project so that when admin logs into admin section access, say, Project 2(Details.aspx?ID=Proj2)? is there a way to create a separate directory for each Projects uploads or some SQL to separate the uploads for each project?
I am only a designer learning on the job doing work free for a non profit. Would like to come through for them. Help would be appreciated. Thanks
|
|
|
|

|
this is good, and handy. my 5.
I would suggest you to integrate drop files facility available in advance browsers. like how gumtree do it.
|
|
|
|
|
|

|
Gratulations! Exact what I was searching for! Thank you!
|
|
|
|
|

|
Thank you! Nice article
|
|
|
|
|
 |