This error occurred when
you add a document larger than maximum attachment size allowed you of your Redmine.
By default the Redmine sets the maximum size of 5120 KB.
To change the
maximum attachment size, you have to go in Administration ->
Settings -> General.