New issue
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
Since 2.0.0 missing mimeType on files uploaded #9
Comments
We badly need that fix! |
Hi, I modified the ftests to upload a PDF on a stock NXP-9.10 and have no issues (original FT):
|
Hi,
Thanks for your help. |
I finally managed to reproduce your issue. The root cause is the tmp file uploaded on the server that has a generated name (expected). A quick fix would be to move the tmp file back with it's original name. That's what I'm doing in the B4 sample. I'm working on fixing the issue based on @fherbin work. I'll release it under both a minor with additional features and bugfix so you can have it faster. |
Fixed with #14, backported with bf8f201 and released in https://github.com/nuxeo/nuxeo-php-client/releases/tag/2.0.1 |
For example if we upload a PDF file, there is no preview on nuxeo platform.
We have a potential fix : nuxeo-php-client\src\Nuxeo\Client\Spi\Objects\NuxeoEntity.php (line 125 : method getResponseNew())
$request = $request->addRelatedFile($file, $file->getContentType());
instead of :
$request = $request->addRelatedFile($file);
The text was updated successfully, but these errors were encountered: