add a simple method in context for upload file