Can I delete files uploaded through an upload control from a different control?

Answered
0
0

The Upload control, when used, will send a UploadedEventArgs, in which you can find a property named files that returns a collection of HttpFiles, containing the ones the user has just uploaded. You can do pretty much whatever you want with those files as long as you have access to that eventargs, and that’s where my problem lays.

I have a button that restarts, or at least that’s the plan, the whole form. The problem, however, is that I can’t delete any file uploaded to the Upload control, because it doesn’t allow you to access the collection from outside.

  • You must to post comments
Best Answer
0
0

Hi Pablo,

you can pass the members to a collection that is instantiated at the form level.
If that does not solve your problem we´d need a test case to better understand your requirements and what you´re trying to achieve.

Best regards
Frank

  • Pablo Clavijo
    That’s exactly what I did and it worked perfectly. Thank you
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.