diff options
Diffstat (limited to 'static/php/upload.php')
| -rw-r--r-- | static/php/upload.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/static/php/upload.php b/static/php/upload.php index 9bb9d3f..c8bae73 100644 --- a/static/php/upload.php +++ b/static/php/upload.php @@ -39,7 +39,7 @@ function generateName($file) // Iterate until we reach the maximum number of retries if ($tries-- === 0) { throw new Exception( - 'Gave up trying to find an unused name', + 'Nie udało się znaleźć nieużywanej nazwy pliku', 500 ); // HTTP status code "500 Internal Server Error" } @@ -128,7 +128,7 @@ function uploadFile($file) // Attempt to move it to the static directory if (!move_uploaded_file($file->tempfile, $uploadFile)) { throw new Exception( - 'Failed to move file to destination', + 'Nie udało się przenieść pliku do celu', 500 ); // HTTP status code "500 Internal Server Error" } @@ -136,7 +136,7 @@ function uploadFile($file) // Need to change permissions for the new file to make it world readable if (!chmod($uploadFile, 0644)) { throw new Exception( - 'Failed to change file permissions', + 'Nie udało się zmienić uprawnień pliku', 500 ); // HTTP status code "500 Internal Server Error" } @@ -223,8 +223,8 @@ if ($login->isLoggedIn()) { $response->error($e->getCode(), $e->getMessage()); } } else { - $response->error(400, 'No input file(s)'); + $response->error(400, 'Nie przesłano żadnego pliku'); } } else { - $response->error(403, 'You are not logged in'); + $response->error(403, 'Nie jesteś zalogowana/y'); } |
