Sign in to follow this  
allencoded

Exporting Image To Server Not Working

Recommended Posts

We are using FusionCharts Trial and are trying to test out all the features before purchasing a full license. We have everything setup perfectly but we are encountering one last road block.

 

What Works:

Exporting as Download works great

Our charts work beautifully

 

 

Problem:

When we try to save an image of the chart and set it as download our $_Post passes data and we are able to export the image just fine.

But when exportAction is set to 'save' our $_Post no longer works, it passes nothing? Therefore resulting in insufficient data.

 

We are operating in an xajax environment, and using Fusion Charts php setup.

 

Here is an example of our Chart attributes:

$FC->setChartParams("bgColor=f3f3f3; showPercentValues=1; showLabels=0; enableRotation=1; pieRadius = 80; enableSmartLabels = 1; pieYScale=50; exportEnabled=1; exportAtClient=0; exportAction=save; exportHandler=../lib/inc/fusionCharts/exportHandlers/FCExporter.php;");

 

 

I am also attaching our FCExporter.php.

 

We are a bit confused why it works perfect for downloading and doesn't post at all for saving? Any help would be greatly appreciated.

FCExporter.php

Edited by allencoded

Share this post


Link to post
Share on other sites
Guest Sumedh

We are using FusionCharts Trial and are trying to test out all the features before purchasing a full license. We have everything setup perfectly but we are encountering one last road block.

 

What Works:

Exporting as Download works great

Our charts work beautifully

 

 

Problem:

When we try to save an image of the chart and set it as download our $_Post passes data and we are able to export the image just fine.

But when exportAction is set to 'save' our $_Post no longer works, it passes nothing? Therefore resulting in insufficient data.

 

We are operating in an xajax environment, and using Fusion Charts php setup.

 

Here is an example of our Chart attributes:

$FC->setChartParams("bgColor=f3f3f3; showPercentValues=1; showLabels=0; enableRotation=1; pieRadius = 80; enableSmartLabels = 1; pieYScale=50; exportEnabled=1; exportAtClient=0; exportAction=save; exportHandler=../lib/inc/fusionCharts/exportHandlers/FCExporter.php;");

 

 

I am also attaching our FCExporter.php.

 

We are a bit confused why it works perfect for downloading and doesn't post at all for saving? Any help would be greatly appreciated.

 

Hi,

 

It seems that, path is not specified properly in the FCExporter.php file elements.

 

Please refer this post: http://forum.fusionc...h__1#entry44317

Share this post


Link to post
Share on other sites
Guest Sumedh

Thanks for the help! We seem to have it working now.

 

It's glad to know that, your issue is resolved.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this