Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Page Export method target location

rohits64600205
Level 3
Level 3

Hi,

I am trying to export a page using Page Exporter api and by using the method export(Page page, ResourceResolver resolver, String targetPath) . I want that my zip file exported should be saved in side a crx node. How can I give a path value in this method so that my zip generated gets saved inside a node. I have tried giving the path like pageExporter.export(page, resourceResolver, "/apps/creative-exchange/content/export/createmodeldialog");  but it is giving me IllegalArgumentException exception. Can anyone help me on this. Thanks in advance

1 Accepted Solution
kautuk_sahni
Correct answer by
Community Manager
Community Manager

Can you please share the full error.log? And also try with the different path like "/var/contentsync".

~kautuk

View solution in original post

2 Replies
kautuk_sahni
Correct answer by
Community Manager
Community Manager

Can you please share the full error.log? And also try with the different path like "/var/contentsync".

~kautuk

View solution in original post

Ankita_Aggarwal
Level 2
Level 2

Are you able to download the zip file via export method, with clientlibs and assets??

Whenever i hit that method, it gets downloaded in crxde , that too without clientlibs and assets.

 

Ankita