RNA STAR - Empty BAM files

Hi,
I am trying to use RNA STAR to map my single end RNA seq reads.
I am trying to use reference genome from history and to make a temporary index by uploading:

Inside the BAM file it is written: Could not display BAM file, error was:
file has no sequences defined (mode=‘rb’) - is it SAM/BAM format? Consider opening with check_sq=False

I have tried to upload annotation file for C. elegans from Ensemble, but Galaxy does not allow me to select that gtf file, although it is uploaded into history.

Does anyone has some suggestion how to get a normal BAM file?

Thanks,

VL