The file actions must explicitly be updated by calling FileActions.display() on the file element after creating or uploading a file. Backport of e98ea068 for #4971 and #4993