You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upload a file larger than the maximum allowed size
You will find an error as follows
On examining create_document.rb:25 on runtime, document variable returns nil. However, create_document is correctly raising an ActiveRecord::RecordInvalid validation error so my guess is that the way in which the begin / rescue statement is written is not allowing the document variable to be passed to the rescue block.
However, I think the pattern is correct and should be passing that variable... here's an example of such pattern on the decidim gem. I can't figure out the reason why the document variable is not passing, but if anyone has a clue I'd be happy to contribute
The text was updated successfully, but these errors were encountered:
Hey there! did a test today and I'm getting the same error but I noticed your commit #98 is this the one you are referring to? because that one's about suggestion lengths, I meant the issue to pertain PDF file size, so, more related to #101
Specifically by this line seems like the document variable is nil. Are you able to reproduce?
Steps to reproduce:
On examining create_document.rb:25 on runtime,
document
variable returns nil. However, create_document is correctly raising an ActiveRecord::RecordInvalid validation error so my guess is that the way in which the begin / rescue statement is written is not allowing thedocument
variable to be passed to the rescue block.However, I think the pattern is correct and should be passing that variable... here's an example of such pattern on the decidim gem. I can't figure out the reason why the
document
variable is not passing, but if anyone has a clue I'd be happy to contributeThe text was updated successfully, but these errors were encountered: