- parent::prepare($argarray);
-
- $this->id = $this->trimmed('id');
-
- if (empty($this->id)) {
- throw new ClientException(_('No id parameter'));
- }
-
- $this->file = File::staticGet('id', $this->id);
-
- if (empty($this->file)) {
- throw new ClientException(sprintf(_('No such file "%d"'),
- $this->id),
- 404);
- }