generate correct properties for upload