diff --git a/scripts/eepromv1a.js/main.js b/scripts/eepromv1a.js/main.js index 8bba72d..db4d1cd 100644 --- a/scripts/eepromv1a.js/main.js +++ b/scripts/eepromv1a.js/main.js @@ -152,7 +152,7 @@ const EEPROM = function(appId, endPoint, auth) { } catch(ex) { if(!ex.abort) { console.error(ex); - throw uploadGenericError(); + throw ex; } throw uploadAbortedError(); diff --git a/src/Uploads/UploadsRoutes.php b/src/Uploads/UploadsRoutes.php index a068d30..5322b93 100644 --- a/src/Uploads/UploadsRoutes.php +++ b/src/Uploads/UploadsRoutes.php @@ -131,7 +131,7 @@ class UploadsRoutes implements IRouteHandler { $content = $request->getContent(); try { - $appInfo = $this->appsCtx->getApp($content->getParam('src', FILTER_VALIDATE_INT)); + $appInfo = $this->appsCtx->getApp((string)$content->getParam('src', FILTER_VALIDATE_INT)); } catch(RuntimeException $ex) { return 404; }