Horrible file deletion code that (barely) works
File uploads now working in subdirectories