Added auto delete for uploaded files

this frees up memory