Fixed file uploading and fixed lesson editing.