static function uploadFile() { $result = false; if (get('cancel-upload')) { go(showurl('files')); return false; } if (get('upload-file')) { $result = data::uploadFile(); if (success($result)) { go(showurl('files')); } } return $result; }