Unverified Commit fa6995c3 authored by Progi1984's avatar Progi1984 Committed by GitHub
Browse files

Merge pull request #27555 from soulardromain/fix-webservice-attachment

Fix update attachment webservice
parents e6b52570 f3df6ae3
......@@ -327,7 +327,7 @@ class WebserviceSpecificManagementAttachmentsCore implements WebserviceSpecificM
try {
$file = $uploader->upload($fileToUpload);
if (!empty($attachment->id)) {
unlink(PS_DOWNLOAD_DIR . $attachment->file);
unlink(_PS_DOWNLOAD_DIR_ . $attachment->file);
}
$attachment->file = $file['id'];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment