Multi file upload

This is a pull request into sha256-custom branch.
Do you want to keep this debugging statements also for later?