Move the uploadFiles widget to resource logic.
Activity