Fixed upload filename

Transaction won't display uploaded documents because the file name
stored in the database did not point to any file. Fixed, and the first
page of the transaction can be viewed.