Skip to content

[5.x] + [4.x] : Moved assets files are being deleted _before_ they are fully copied. #16686

@nitriques

Description

@nitriques

What happened?

Description

When moving an asset from a local volume to a remote volume (I my case, a Cloudflare Image volume), any assets that fails to upload will be "gone" from the cms.

Steps to reproduce

  1. Create 2 volumes, one with a local FS and the other with a remote FS.
  2. Upload an asset to the volume with the local FS
  3. Move it across the remote volume. Set a broken api key so the store operation fails.

Expected behavior

The asset should remain at is original place.

Actual behavior

The asset is gone.
This is even worst in the case of a folder move, where one out of x move fails, and then you've lost the whole folder...

Craft CMS version

latest 4 et 5

PHP version

8.3

Operating system and version

linux

Database type and version

mysql 8

Image driver and version

Installed plugins and versions

  • Cloudflare Images

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions