how do i change assignment upload directory filepath?

how do i change assignment upload directory filepath?

by ng ng -
Number of replies: 0

Hi All,

when i upload assignment, system will auto create a folder to my server.

can i change it to $CFG->dataroot.'/'.courses_id ?

by default the filepath is $CFG->dataroot.'/'.$dir
the $dir = 2\moddata\assignment\3\9 due to i have student marking system . I need student marking system will get from datadir =  Moodle\Moodle19\server\moodledata\courses_id instead of Moodle\Moodle19\server\moodledata\2\moddata\assignment\3\9.

i dont know where i can get courses_id .....

Thanks,
Jeff.

Average of ratings: -