Limiting file formats can be uploaded and also removing BASE_DIR