fixed redirect to entry after uploading file