File upload script based on HTTP PUT