another attempt at solving empty result in file upload