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

[BUGFIX] Fix moving and copying files into a new folder #152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

soee
Copy link

@soee soee commented Sep 3, 2024

The AmazonS3Driver for move and copy operation creates target file identifier by concatenating target folder identifier and target file name:

$targetIdentifier = $targetFolderIdentifier . $newFileName;

This is wrong as it will just rename the current file by appending to the name the target folder indentifer (due to concatenation used).

This commit fixes this bug by adding / between target folder identiifer and the file name:

$targetIdentifier = $targetFolderIdentifier . '/' . $newFileName;

The AmazonS3Driver for move and copy operation creates target file identifier
by concatenating target folder identifier and targert file name:

```
$targetIdentifier = $targetFolderIdentifier . $newFileName;
```

This is wrong as it will just rename the current file by appending to the name the 
target folder indentifer (due to concatenation used).

This commit fixes this bug by adding `/` between target folder identiifer and
the file name:

```
$targetIdentifier = $targetFolderIdentifier . '/' . $newFileName;
```
@cweiske
Copy link
Contributor

cweiske commented Sep 6, 2024

This is a duplicate of #147 and #146.

@weakbit weakbit self-assigned this Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants