Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

What is the max allowed size for attachments

Vote:
 

How can I get the allowed max size for an attachment that can be indexed?

Can I get it from the API somehow or is there some documentation somewhere?

I'm getting the error "(413) Request Entity Too Large." and would like to introduce a convention that validates which media to include when indexing.

We have a custom property for our GenericMedia implementation called "fileSizeInKB" which is set when media is uploaded.

The Find index in question is for a  "small" license.

#122846
Jun 16, 2015 15:21
Vote:
 

I believe this is a limitation of IIS/ASP.NET, not Find itself. You might want to set maxRequestLength and maxAllowedContentLength  in web.config.

Regards,

/Q

#122854
Jun 16, 2015 17:03
Vote:
 

Sorry if I was unclear.

The (413) response is sent by the Find service (hosted by EPiServer) when running the built in scheduled job "EPiServer Find Content Indexing Job".

By looking in the debug log and using Fiddler I've come to the conslusion that the cause for this is probably some large files which has been uploaded to the CMS and our current indexing convention allows to be indexed.

#122868
Jun 16, 2015 23:11
Vote:
 

The maximum request size to Find is 50mb and by default 5 IContentMedia items may be sent in the same request when using the indexing job. Newer versions of Find will automatically throttle this if it recieves a 413 message and split this into batches of 1 media item but if you are running an old client you have to lower the batch size using:

ContentIndexer.Instance.MediaBatchSize = 1;

This way a single request to Find will only contain 1 media item that at most can be 50mb.

/Henrik

#123068
Jun 24, 2015 11:42
Vote:
 

Thanks for the info Henrik!

It also turned out that our production index had a faulty setup with a limit set at 5MB (was done by EPiServer operations) .

So it would be awesome if this kind of info could be easily available.

Perhaps you guys can consider adding it to the Find overview?

Suggested extra  info

#123112
Jun 25, 2015 9:21
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.