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

Upload failed. Please use this URI to resume your upload #116

Open
munkiepus opened this issue Dec 7, 2021 · 1 comment
Open

Upload failed. Please use this URI to resume your upload #116

munkiepus opened this issue Dec 7, 2021 · 1 comment

Comments

@munkiepus
Copy link

i'm trying to copy from a local disc to a gcs disk

the simplified version here:

$from = 'local';
$localDisk = Storage::disk($from);
$to = 'archive';
$archiveDisk = Storage::disk($to);

print_r($archiveDisk->allFiles());

// check if a file exists on archive already
if($archiveDisk->exists($file->getSlug())){
    echo "file exists already in archive\n";
} else {
    echo "file not found in archive\n";
}
//check file exists on local disc
if($localDisk->exists($file->getSlug())){
    echo "file exists on local\n";
} else {
    echo "file not found on local\n";
}

$archiveDisk->put($file->getSlug(), $localDisk->get($file->getSlug()));

it pauses for a while then gives this error:

In ResumableUploader.php line 184:

  Upload failed. Please use this URI to resume your upload: <google cloud url>

the print_r does show all files in the bucket so it looks to be configured correctly. but cant seems to send files to it, has anyone else seen this issue?

@pomirleanu
Copy link

Hi @munkiepus, I have the same problem, have you managed to get it working?

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

2 participants