From a189b0edc04c837d09b7bc5ddb333a5eb48f6387 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Wed, 8 Feb 2017 09:22:33 +0100 Subject: [PATCH] Add download_uploaded_files.php to process course/X/tool/upload/(*) Files inside course/X/tool/upload/(*) are process internally in order to get the correct file location (vchamilo). --- .htaccess | 2 +- main/document/download_uploaded_files.php | 34 +++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 main/document/download_uploaded_files.php diff --git a/.htaccess b/.htaccess index fe7ab69208..d9acf41b81 100644 --- a/.htaccess +++ b/.htaccess @@ -31,7 +31,7 @@ RewriteRule ^courses/([^/]+)/document/(.*)$ main/document/download.php?doc_url=/ RewriteRule ^courses/([^/]+)/work/(.*)$ main/work/download.php?file=work/$2&cDir=$1 [QSA,L] # Course upload files -RewriteRule ^courses/([^/]+)/upload/(.*)$ app/courses/$1/upload/$2 [QSA,L] +RewriteRule ^courses/([^/]+)/upload/([^/]+)/(.*)$ main/document/download_uploaded_files.php?code=$1&type=$2&file=$3 [QSA,L] RewriteRule ^courses/([^/]+)/(.*)$ app/courses/$1/$2 [QSA,L] RewriteRule ^courses/([^/]+)/course-pic85x85.png$ app/courses/$1/course-pic85x85.png [QSA,L] diff --git a/main/document/download_uploaded_files.php b/main/document/download_uploaded_files.php new file mode 100644 index 0000000000..eb1097052b --- /dev/null +++ b/main/document/download_uploaded_files.php @@ -0,0 +1,34 @@ +