Add corrent handling of files in the web interface