mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-23 16:53:45 +02:00
Add support for seeding nests and eggs
This commit is contained in:
@@ -75,7 +75,7 @@ class EggImporterService
|
||||
*/
|
||||
public function handle(UploadedFile $file, int $nest): Egg
|
||||
{
|
||||
if (! $file->isValid() || ! $file->isFile()) {
|
||||
if ($file->getError() !== UPLOAD_ERR_OK || ! $file->isFile()) {
|
||||
throw new InvalidFileUploadException(trans('exceptions.nest.importer.file_error'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user