The attached patch fixes this problem as well as the problem that the file size is not correctly reported in the datas field.
The attached patch fixes this problem as well as the problem that the file size is not correctly reported in the datas field.