added error handling for deleting assets with assigned schedules and uploading without selecting a file