From e25eefd8a8a9d4c4113e69d7c501f8e5c2499b6d Mon Sep 17 00:00:00 2001 From: HarleyDavidson86 Date: Mon, 1 Feb 2016 10:24:42 +0100 Subject: [PATCH] Update uploader.php Usage of a symlink instead of copy the SVG-file --- bl-kernel/ajax/uploader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bl-kernel/ajax/uploader.php b/bl-kernel/ajax/uploader.php index f61b070c..403ad0a1 100644 --- a/bl-kernel/ajax/uploader.php +++ b/bl-kernel/ajax/uploader.php @@ -57,7 +57,7 @@ else { //If it is a svg file, just save a copy in thumbnail-folder if (strcasecmp($fileExtension, 'svg') == 0) { - copy(PATH_UPLOADS.$tmpName, PATH_UPLOADS_THUMBNAILS.$tmpName); + symlink(PATH_UPLOADS.$tmpName, PATH_UPLOADS_THUMBNAILS.$tmpName); } } @@ -71,4 +71,4 @@ exit(json_encode(array( 'filename'=>$tmpName ))); -?> \ No newline at end of file +?>