Fix public upload

add some testing
Not for the server-side I believe, it was to help @poupotte with the preparation of LaPoste demo. So let it that way for now, we'll change that when we have a decent set of fixtures.