protected function uploadTemporary(LaravelUploadedFile $uploadedFile, array $input)
    {
        $file                    = $this->resolveTempFileName($uploadedFile);
        $uploadedFile->directory = $file['directory'];
        $uploadedFile->filename  = $file['filename'];

        Validator::resolver(function($translator, $data, $rules, $messages) {
            return new CsvCustomValidator($translator, $data, $rules, $messages);
        });
        $validation = $this->validator->on('upload')->with($input, [], [
            'source' => trans('antares/foundation::response.modules.validator.invalid-structure')
        ]);
        if ($validation->fails()) {
            return Response::make($validation->getMessageBag()->first(), 400);
        }
        return ($uploadedFile->move($uploadedFile->directory, $uploadedFile->filename)) ?
                Response::json(['path' => $uploadedFile->directory . DIRECTORY_SEPARATOR . $uploadedFile->filename], 200) :
                Response::make(trans('Unable to upload file.'), 400);
    }