Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

CloudConvert is returning from S3 before upload is even complete. #62

Open
YCMitch opened this issue Feb 24, 2019 · 0 comments
Open

CloudConvert is returning from S3 before upload is even complete. #62

YCMitch opened this issue Feb 24, 2019 · 0 comments

Comments

@YCMitch
Copy link

YCMitch commented Feb 24, 2019

Or perhaps I'm expecting the conversion to be synchronous, and it's not?

I've got the below code, which successfully converts a file and uploads it to S3. However, $thumbUrl is returning a URL before the upload is complete, meaning my returned image thumbnail 404s.

Is this intended behaviour? If so, is there a way to have it run synchronously? This whole process is already on a queue, so it's probably excessive to queue from within a queue...

$cloudConvertInstance->file($cloudConvertInstance->S3($folder.$fileName))
    ->withOptions([
        'quality' => 80,
        'resize' => '400x400',
    ])->to($cloudConvertInstance->S3($folder.$tempName));

$thumbUrl = Storage::disk('s3')->url($folder.$tempName);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant