Update uploader.php
Usage of a symlink instead of copy the SVG-file
This commit is contained in:
parent
f355890757
commit
e25eefd8a8
|
@ -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
|
||||
)));
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue