You can add your custom processor into the pipeline or replace the existing processor with a custom one. you can change the standard Sitecore behavior in order to enhance or change the way they work.
The file uploading process is defined by pipeline <uiUpload>
in the web.config
file. Please have a look at the <processors>
section in this file:
<uiUpload>
<processor mode="on" type="Sitecore.Pipelines.Upload.ResolveFolder, Sitecore.Kernel" />
<processor mode="on" type="Sitecore.Pipelines.Upload.Save, Sitecore.Kernel" />
<processor mode="on" type="Sitecore.Pipelines.Upload.Unzip, Sitecore.Kernel" />
<processor mode="on" type="Sitecore.Pipelines.Upload.Done, Sitecore.Kernel" />
</uiUpload>
Reference: Customizing the Upload Process
Hope it helps!