Update uploader.php

Usage of a symlink instead of copy the SVG-file
This commit is contained in:
HarleyDavidson86 2016-02-01 10:24:42 +01:00
parent f355890757
commit e25eefd8a8
1 changed files with 2 additions and 2 deletions

View File

@ -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
)));
?>
?>