Yes, the headers look fine.
Managed to get it working by implementing local node.js server following some code from your website.
For the moment that's fine.
Issue solved!
Thanks for your support!
Regards,
Deyan
Yes, the headers look fine.
Managed to get it working by implementing local node.js server following some code from your website.
For the moment that's fine.
Issue solved!
Thanks for your support!
Regards,
Deyan
Thank you Jan,
I'm actually estimating your software worth buying.
If I cannot redirect the uploads of reports being uploaded to your servers, that's it.
It does not matter the language - PHP, Node.js or whatever, HTTP requests are standard.
Therefore, I believe there is some issue with your request. For example, if it lacks the Content-Type: multipart/form-data header, it would not be recognized as such.
I have everything locally running, what I cannot get working is the office preview redirection.
From my previous post:
"get this response from the office service refusing, obviously refusing to work with hosts without domain names.
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable."
I don't have a domain name pointing to my laptop, only IP, and I'm not going to have one.
Thank you for your replies!
Yes, you are right.
But this actually what I try to achieve - not uploading to https://jsreport.net our report data.
What I have tried to do is to redirect publicUri to my local instance of Jsreport by setting:
"publicUri": "https://[MY_EXTERNAL_IP]:5488/temp"
After making sure my local Jsreport instance is reachable from the internet - setting up router settings, etc. I tried if Office Preview is working - no luck.
I get this response from the office service refusing, obviously refusing to work with hosts without domain names.
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
That is why I'm trying to set it up on a remote server, running php, having domain name, so on...
Any other suggestions?
Hi Jan,
Thanks for the lightning-fast reply!
I still get my post request empty.
If I dump my $_FILES array (using php) when trying to do an office preview, that should hold the uploaded files from the post, I get empty array
array(
)
And, just for comparison, here is what I get when I do a multipart request with Postman
array (
'field' => array (
'name' => 'Intel_SSD_Firmware_Update_Tool_2 0 3_User_Guide_322570-006US.pdf',
'type' => 'application/pdf',
'tmp_name' => '/tmp/phpH8xpt1',
'error' => 0,
'size' => 1261256,
),
)
Hello,
I'm trying to configure the office preview to store files on my server instead of uploading to jsreport.net.
I have configured this settings:
{
"office": {
"preview": {
"enabled": true,
"publicUri": "https://my-custom-server.com/some-route"
}
}
}
The route accepts POST streaming requests (should be RAW requests I guess), but the request seems to be empty.
I have inspected the request by logging a dump - empty. I also tried to save the stream to file - also empty.
Per my understanding, my server should expect the file to be previewed (xlsx, docx, etc), store it and then serve it to the microsoft's service for previewing.
I'm using the Sales example without any changes.
Regards!