upload of files - working, minor changes in this shitcode