Adapt file upload to new API

What seems to go wrong is that the parent_pid is not properly handled
and that the hbz#hasData points to the wrong URL