fix upload of files