We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I tried several things:
$response = $this->client->request('upload.create', [ 'project_id' => $this->projectId, 'locale_id' => $localeId, 'file' => $data, // xml string 'file_format' => 'symfony_xliff', 'tags' => $domain ]);
as well as:
$response = $this->client->request('upload.create', [ 'project_id' => $this->projectId, 'locale_id' => $localeId, 'file' => $fileName, // file name on disk 'file_format' => 'symfony_xliff', 'tags' => $domain ]);
and:
$response = $this->client->request('upload.create', [ 'project_id' => $this->projectId, 'locale_id' => $localeId, 'file' => '@' . $fileName, // file name on disk 'file_format' => 'symfony_xliff', 'tags' => $domain ]);
But I always receive the response:
Error executing command: Client error response [url] https://api.phraseapp.com/api/v2/projects/<my project id>/uploads [status code] 422 [reason phrase] status code 422
While doing it from linx with curl:
curl -u <my api key>: "https://api.phraseapp.com/api/v2/projects/<my project id>/uploads" -X POST -F file=@/tmp/booking_en.xlf -F file_format=symfony_xliff -F tags=booking -F locale_id=<my locale id>
works just fine, what am I doing wrong? Any help is greatly appreciated!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I tried several things:
as well as:
and:
But I always receive the response:
While doing it from linx with curl:
works just fine, what am I doing wrong? Any help is greatly appreciated!
The text was updated successfully, but these errors were encountered: