Enable Downloads from Instructor tab in LMS
These instructions will allow you to enable downloads from instructor tab in LMS.
First, create symlink to true location of .csv files(/tmp/edx-s3/grades) in (/edx/var/edxapp/media) directory.
Issue the following command from the terminal:
ln -s /tmp/edx-s3/grades /edx/var/edxapp/media
Make the following changes in nginx configuration. First, open the lms nginx file from your favourite editor.
Issue the following command from the terminal:
sudo nano /etc/nginx/sites-enabled/lms
Find the following code on the file:
location ~ ^/media/(?P<file>.*) {
root /edx/var/edxapp/media;
try_files /$file =404;
expires 31536000s;
}
Change it to the following line of codes:
location ~ ^/media/(?P<file>.*) {
root /edx/var/edxapp/media;
try_files /$file /media/grades/$file;
expires 31536000s;
}
location ~ ^/grades/(?P<file>.*) {
root /edx/var/edxapp/media/grades;
try_files /$file =404;
expires 31536000s;
}
Restart the nginx service by issuing the following command:
sudo service nginx restart