[LON-CAPA-cvs] cvs: loncom /homework daxesave.pm
raeburn
raeburn at source.lon-capa.org
Mon Aug 28 21:43:35 EDT 2023
raeburn Tue Aug 29 01:43:35 2023 EDT
Modified files:
/loncom/homework daxesave.pm
Log:
- When using pop-up browser in Daxe to insert image files into HTML files
uploaded to a course, use lonnet::userfileupload for "cleaning" of filenames,
for consistency with "Manage dependencies" available outside Daxe.
Index: loncom/homework/daxesave.pm
diff -u loncom/homework/daxesave.pm:1.7 loncom/homework/daxesave.pm:1.8
--- loncom/homework/daxesave.pm:1.7 Mon Aug 28 18:58:44 2023
+++ loncom/homework/daxesave.pm Tue Aug 29 01:43:35 2023
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Convert and save a problem from Daxe.
#
-# $Id: daxesave.pm,v 1.7 2023/08/28 18:58:44 raeburn Exp $
+# $Id: daxesave.pm,v 1.8 2023/08/29 01:43:35 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -125,8 +125,8 @@
$unsupported = $1;
}
unless ($unsupported) {
- my $url = &Apache::lonnet::finishuserfileupload($cnum,$cdom,'file',
- "$type/$folder/$rid/$fname");
+ my $url = &Apache::lonnet::userfileupload('file','daxesave',"$type/$folder/$rid",
+ undef,undef,undef,$cnum,$cdom);
if ($url =~ m{^/uploaded/$cdom/$cnum/$type/$folder/$rid/}) {
$request->print("ok\n");
} else {
More information about the LON-CAPA-cvs
mailing list