Skip to content
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

Error when merge #3

Open
taihojvc opened this issue Feb 28, 2022 · 0 comments
Open

Error when merge #3

taihojvc opened this issue Feb 28, 2022 · 0 comments

Comments

@taihojvc
Copy link

Hi all, My code sample here:

$slidesApi = self::getCloudApi();
$fileName = "file_2.pptx";
$fileName2 = "file_3.pptx";

    $inputFolder = storage_path('app/public/');

    // Upload original documents to storage
    $fileStream = fopen($inputFolder . $fileName, 'r');
    $slidesApi->uploadFile($fileName,  $fileStream, '24h store');

    $fileStream2 = fopen($inputFolder . $fileName2, 'r');
    $slidesApi->uploadFile($fileName2,  $fileStream2, '24h store');

    $mergeList = new PresentationsMergeRequest();
    $mergeList->setPresentationPaths(array($fileName, $fileName2));

   $res = $slidesApi->merge("test_merge.pptx", $mergeList, null, null, '24h store');

And I get the error is:
Error: Merge. Exception: Error processing presentation file_2.pptx: AmazonS3 Storage exception: The specified key does not exist. Bucket 'aspose.cloud-filestorage-prod'

Does I do wrong config any thing? Please help me this. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant