Fix uploading moodle files