Updated rule for file uploading