reworked file picker. Work in progress : upload code