File upload and download now working