src/delivery/web/fields/FileField.php 1 location
|
@@ 33-37 (lines=5) @@
|
30 |
|
|
31 |
|
if ($file && !$file['error']) { |
32 |
|
return new SavedFile($file['tmp_name'], $file['name'], $file['type']); |
33 |
|
} else if (isset($serialized['name']) && $serialized['name']) { |
34 |
|
return $this->createPreservedFile($serialized); |
35 |
|
} else { |
36 |
|
return null; |
37 |
|
} |
38 |
|
} |
39 |
|
|
40 |
|
/** |
src/delivery/web/fields/ImageField.php 1 location
|
@@ 75-79 (lines=5) @@
|
72 |
|
list($name, $type) = explode(';;data:', $nameAndType); |
73 |
|
|
74 |
|
return new Image(new MemoryFile($name, $type, base64_decode($data))); |
75 |
|
} else if (isset($serialized['name']) && $serialized['name']) { |
76 |
|
return new Image($this->createPreservedFile($serialized)); |
77 |
|
} else { |
78 |
|
return null; |
79 |
|
} |
80 |
|
} |
81 |
|
|
82 |
|
/** |