Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7128301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:07:28+00:00 2026-05-28T11:07:28+00:00

I want to upload a file in a class that does not know about

  • 0

I want to upload a file in a class that does not know about the form where the progress of the upload shoul be visible. Is there a way through events or delegate to inform it somehow?
at this moment I can set the progress directly, but I want to do the class lesser dependent on the view implementation.
thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T11:07:28+00:00Added an answer on May 28, 2026 at 11:07 am

    Definitely. You will need to implement some sort of “ProgressMade” event on the uploading class, which the form will then subscribe to (or be subscribed to by some intermediary like a Controller if that’s your pattern). You should then raise the “ProgressMade” event when your class detects that data has been sent.

    How THAT happens depends on what your class is using to perform the upload. If you’re using a StreamWriter, unfortunately those classes don’t have “reactive” events that monitor progress. All is not lost; you should be able to derive from the class you’re using to fire a “WritePerformed” of some sort that you can use to trigger ProgressMade. Check out this answer: how to increase progressbar when i write xml?. It should apply to pretty much any Writer. If you’re using something a little less abstract, like a Socket, then you should be well able to track the number of bytes you’re pushing into the connection.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use the PHP language for file upload and want to know that the
I want a robust way to upload a file. That means that I want
In Flex i want to upload a particular file to server form local system.how
I have a particular php class that I want to be able to upload
I want to make sure that during file upload time, only the file of
I have a form that allows users to upload text AND a file. However,
I want to upload a file to a ftp server programmatically (C++). If the
i want to upload the sound file (.ogg) in server. But it should write
I want to upload and then process a file in a Ruby on Rails
I want to reset a file upload field when the user selects another option.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.