Fix public upload

add some testing
check the need for "=>" vs "->". Also useless "()"