fix9: snd attempt to make upload_file function not deadlockable