Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
-
None
Description
I wanted to create a specific validate_doc_update preventing to add attachments bigger than a certain size to a document (to defeat possible abuses from users).
The problem is: when I upload a document, if I log the value of newDoc._attachments.<filename>.length it reports "undefined".
I believe this is a "bug" since if I use GET on the document just after it is updated with the attachment the length & digest are there. The validate_doc_update should always process the same data that will be served by CouchDB if it does not deny the update.
NB: I uploaded the attachments using the Futon interface during my tests on the subject