You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Laravel Action that takes an image from the local filesystem and uploads it to uploadcare. I am using the $uploader->fromPath() method and capturing the response in a $response variable:
and then returning the original file url by doing return $response->getOriginalFileUrl();.
The issue that I run into is, sometimes the $response->getOriginalFileUrl(); will return an empty string. The file still gets uploaded to uploadcare, I can access the $getUuuid() and $getOriginalFilename() methods just fine. I'm wondering if I'm doing something wrong or is there a way to wait until $response->getOriginalFileUrl() is populated?
Code / screenshots
Environment
Library version: 3.2.4
Language/framework version: Laravel 9 / PHP 8.1
OS version: Ubuntu 22
The text was updated successfully, but these errors were encountered:
Describe the bug
Expected behavior
I have a Laravel Action that takes an image from the local filesystem and uploads it to uploadcare. I am using the
$uploader->fromPath()
method and capturing the response in a$response
variable:and then returning the original file url by doing
return $response->getOriginalFileUrl();
.The issue that I run into is, sometimes the
$response->getOriginalFileUrl();
will return an empty string. The file still gets uploaded to uploadcare, I can access the $getUuuid() and $getOriginalFilename() methods just fine. I'm wondering if I'm doing something wrong or is there a way to wait until $response->getOriginalFileUrl() is populated?Code / screenshots
Environment
The text was updated successfully, but these errors were encountered: