Upload field in core modules

In some countries digital records are not regal so there is need to upload scanned documents.

What is the easiest way to implement an upload field in a module like account…

The nearest thing I have see is http://www.bhea.com/blog/creating-file-upload-field-core-modulecustom-module-sugar-7-x/

I however get errors as per my comment below the article