diff --git a/src/Controller/UploadController.php b/src/Controller/UploadController.php index 96a897a..885eee4 100644 --- a/src/Controller/UploadController.php +++ b/src/Controller/UploadController.php @@ -186,7 +186,7 @@ public function fill( Request $request, Response $response ) { $query = $request->getQueryParams(); $iaId = trim( $query['iaId'] ?? '' ); $commonsName = $this->commonsClient->normalizePageTitle( $query['commonsName'] ?? '' ); - $format = $query['format'] ?? 'pdf'; + $format = $query['format'] ?? 'djvu'; $fileSource = $query['fileSource'] ?? 'djvu'; // Validate inputs. if ( $iaId === '' || $commonsName === '' ) { @@ -460,7 +460,7 @@ protected function outputsInitTemplate( array $params, Response $response ) { 'iaId' => '', 'commonsName' => '', 'jobs' => [], - 'format' => 'pdf', + 'format' => 'djvu', 'wiki_base_url' => $this->config['wiki_base_url'], ]; $params = array_merge( $defaultParams, $params );