@@ -52,7 +52,7 @@ trait WebUploader
{
$this->options['chunkSize'] = $size * 1024;
- $this->checked(true);
+ $this->chunked(true);
return $this;
}
@@ -65,7 +65,7 @@ trait ModelTree
*/
public function getDefaultParentId()
- return empty($this->defaultParentId) ? '0' : $this->defaultParentId;
+ return isset($this->defaultParentId) ? $this->defaultParentId : '0';
/**