My C# application invokes upload process to upload a file.
I need to delete this file after it gets uploaded. How can I make sure to delete this file only after it is uploaded? Can I use Backgroundworker in this scenario and delete file in the "RunWorkerCompleted" method? Is this a good practice?
Thanks for any suggestions.