There isn't a limit on attachment size, although big attachments aren't encouraged. The issue is that you are probably hitting request time / size issues. You need to configure IIS properly. Note that we never really meant attachments to hold very large values.
Quota for attachments in RavenDB
-
27-06-2023 - |
Question
In my RavenDB 2.5.2851 database I want to put attachments up to 2GB.
var store = new DocumentStore { Url = "http://127.0.0.1:8080" }.Initialize();
using (var reader = new StreamReader("test.attachment"))
{
var id = "attachments/1";
store.DatabaseCommands.PutAttachment(id, null, reader.BaseStream, null);
}
PutAttachment method started, but after 1,5 minutes the exception thrown: "The request was aborted: The request was cancelled". I think this exception throws because of attachment size limits.
Is there the limit for attachment size? Can I configure it?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow