is there any way to create the application which is list the file uploads and downloads activity on system need to identify the file name which was uploaded/downloaded with time
Loading
is there any way to create the application which is list the file uploads and downloads activity on system need to identify the file name which was uploaded/downloaded with time
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Naimish MakwanaRank #324 · 7.7K reputationPosted Jan 17, 2024, 11:53 PM EST
Yes, it is possible to create a C# Windows application that tracks file upload and download activities. However, please note that tracking all file upload/download activities on a system can be complex due to the variety of protocols and applications that can be used for file transfer.
Here’s a high-level approach you could take:
FileSystemWatcherclass in .NET to monitor changes in specific directories. This class can raise events when a file is created, changed, deleted, or renamed.FileSystemWatcher watcher = new FileSystemWatcher(); watcher.Path = @"C:\path\to\directory"; watcher.Created += OnChanged; watcher.EnableRaisingEvents = true;In the
OnChangedevent handler, you can log the details of the created files.Please note that this approach will not track file transfers that occur outside of your application or through different protocols (like FTP, SFTP, HTTP, etc.). Also, remember to respect user privacy and legal requirements when implementing such features.
This is a complex task that may require a deep understanding of networking and file systems, so if you’re new to these topics, you might want to start with simpler projects.
Thanks
Ramakrishnan RRank #998 · 2K reputationPosted Jan 18, 2024, 12:01 AM EST
There are third-party applications designed for file auditing and monitoring like Netwrix Auditor, SolarWinds Access Rights Manager, and others. These tools can provide detailed logs and reports on file activities.