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

How to show Upload progress?

27
Can anyone plz tell me,I have OCX created Http upload control.In that I am sending chunk wise data.Everything is working fine.My question is-how can I show Upload progress or Uploading cancelled,using raiseEvent method.
I am sending my code whatever I tried-

(When I run the code file uploaded successfully,but I can not see the progess,how much bytes are uploaded)
Expand|Select|Wrap|Line Numbers
  1. Public Enum TransferProcesses
  2.     TransferProcess_Upload = 0
  3. End Enum
  4.  
  5. 'Events of control
  6. Public Event UploadProgress(ByVal bytesTransfered As Long, ByVal totalBytes As Long, transferProcess As TransferProcesses)
  7. Public Event UploadComplete()
  8. Public Event UploadCancelled()
  9. Public Event UploadError(ByVal errNumber As Integer, ByVal errString As String, ByVal httpErrNumber As Long, ByVal httpErrString As String)
  10.  
  11. BytesUploaded = BytesUploaded + BUFFER_SIZE
  12.         RaiseEvent UploadProgress(BytesUploaded, lData, TransferProcess_Upload)
  13.  
May 6 '08 #1
1 1224
Dököll
2,364 Expert 2GB
Can anyone plz tell me,I have OCX created Http upload control.In that I am sending chunk wise data.Everything is working fine.My question is-how can I show Upload progress or Uploading cancelled,using raiseEvent method.
I am sending my code whatever I tried-

(When I run the code file uploaded successfully,but I can not see the progess,how much bytes are uploaded)
Expand|Select|Wrap|Line Numbers
  1. Public Enum TransferProcesses
  2.     TransferProcess_Upload = 0
  3. End Enum
  4.  
  5. 'Events of control
  6. Public Event UploadProgress(ByVal bytesTransfered As Long, ByVal totalBytes As Long, transferProcess As TransferProcesses)
  7. Public Event UploadComplete()
  8. Public Event UploadCancelled()
  9. Public Event UploadError(ByVal errNumber As Integer, ByVal errString As String, ByVal httpErrNumber As Long, ByVal httpErrString As String)
  10.  
  11. BytesUploaded = BytesUploaded + BUFFER_SIZE
  12.         RaiseEvent UploadProgress(BytesUploaded, lData, TransferProcess_Upload)
  13.  
Hey there Swan!

Is this the whole code? Please add everything just oin case someone is passing through does not have the time to rework your idea;-)

Please stay tuned!
May 11 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Brian Birtle | last post by:
**** A CHALLENGE TO THE GURUS - refute the statement "It's impossible to build a file upload progress meter using ASP.NET" **** First person to prove me wrong gets "All Time .NET Programming GOD"...
3
by: Jeff S | last post by:
I'm enabling users to upload files to the server. I'd like to show them some indication of percent complete. How can this be done? Thanks!
4
by: Pavils Jurjans | last post by:
Hello, I have the following setup: The page that contains the form with file upolad HTML control resides on another server that doesn't have ASP.NET available. It may well be just static...
1
by: Marko Vuksanovic | last post by:
I am trying to implement a file upload progress indicator (doesn't have to be a progress bar) using atlas... I do realize that the indicator cannot be implemented using Update panel control, but is...
6
by: Marko Vuksanovic | last post by:
I am trying to implement a file upload progress indicator (doesn't have to be a progress bar) using atlas... I do realize that the indicator cannot be implemented using Update panel control, but is...
1
by: Marko Vuksanovic | last post by:
I used the following code for implementing a file upload progress indicator, using UpdateProgress Panel, though I have a problem that FileUpload.Has File always returns false. Any suggestions what...
3
by: markus.rietzler | last post by:
i want to do (multiple) file upload(s) and display a progress bar. with firefox and safari it is no problem at all. only IE makes some problems. my script is based on ajax-uploader, which can be...
3
by: shapper | last post by:
Hello, I need to upload a file. Can I only do this with the File Upload control? I also need the following: - Send upload info, upload percentage, continuously to a JavaScript function so...
6
by: neovantage | last post by:
Hey all, i have installed Uber uploader on my server. and it is working perfectly. It shows progress bar after submitting form. I want that when i upload an image or a file it shows the progress in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
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
by: Shćllîpôpď 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.