This method is used when an uploaded file is attached to a user or another resource directly.