improve generic upload

make changes to the generic upload so
it works similarily to the maven uploads