mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-12 11:24:31 +02:00
Fixed an exception when moving an attachment to private folder.
This commit is contained in:
parent
ab777bc264
commit
15957203af
1 changed files with 2 additions and 0 deletions
|
@ -232,6 +232,8 @@ class AttachmentSubmitHandler
|
|||
|
||||
//Move file to new directory
|
||||
$fs = new Filesystem();
|
||||
//Ensure that the new path exists
|
||||
$fs->mkdir(dirname($new_path));
|
||||
$fs->rename($old_path, $new_path);
|
||||
|
||||
//Save info to attachment entity
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue