What does the Sitecore CheckSize Pipeline do?

Matthew Pigram

Looking through the web.config of a Sitecore project that we have I can see that there is a Pipeline in the <uiUpload> section of the code which is called CheckSize. I am hoping that I can use this to check the size of an item that is being uploaded to Sitecore in order to open a dialog to warn the user of the possible impact of publishing a large file to the site and offer them the opportunity to either back out of the publish or continue.

Does anyone here know what this pipeline does and if I can alter it to perform the checks I have listed above?

<uiUpload>
    <processor mode="on" type="Sitecore.Pipelines.Upload.CheckPermissions, Sitecore.Kernel" />
    <processor mode="on" type="Sitecore.Pipelines.Upload.CheckSize, Sitecore.Kernel" />
    <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.Done, Sitecore.Kernel" />
</uiUpload>

Vlad Iobagiu

these processors are used when you upload files into Sitecore Media Library.

  1. CheckPermissions processor is checking permisions for the folder where you upload files. If you don't have permission is aborting the upload.
  2. CheckSize processor is checking if the size of every file uploaded is greater than Media.MaxSizeInDatabase value from web.config.
  3. Other 3 processor is resolving the folder where you upload files, add media items and attached the file you upload to media item.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related