Set category while uploading a file