File actions are now updated after create/upload file

The file actions must explicitly be updated by calling
FileActions.display() on the file element after creating or uploading a
file.

Backport of e98ea06890e87a67f2ae501b7daa55882d1d3a03 for #4971 and #4993