added BASE_URL to file.php, i dont know if it works. old code never commited