mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-25 03:08:51 +02:00
Moved attachment form submit logic to a seperate service.
This commit is contained in:
parent
1f7c122ba2
commit
d382021fee
9 changed files with 279 additions and 73 deletions
|
@ -146,6 +146,11 @@ abstract class Attachment extends NamedDBElement
|
|||
*/
|
||||
public function isExternal() : bool
|
||||
{
|
||||
//When path is empty, this attachment can not be external
|
||||
if (empty($this->path)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
//After the %PLACEHOLDER% comes a slash, so we can check if we have a placholder via explode
|
||||
$tmp = explode("/", $this->path);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue