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

BUG Upload: File versioning with existing files #3570

Closed
wants to merge 1 commit into from

Conversation

JayDevlin
Copy link
Contributor

I introduced a bug in #2921 where an uploaded file with a digit in the filename can not be versioned if a file with the same filename already exists.

Bug:

  • upload test.jpg
  • upload test.jpg again - versioned to test2.jpg
  • upload test.jpg again - versioned to test3.jpg
  • upload test3.jpg - should be test4.jpg but ...

[User Error] Couldn't fix assets/Uploads/test3.jpg with 3 tries Line 184 in framework/filesystem/Upload.php

Bugfix for #3565

@tractorcow
Copy link
Contributor

Good job @JayDevlin, really appreciate your help.

I've tested it locally and it works well.

@tractorcow
Copy link
Contributor

Closed with d474671

I fixed the commit in this PR, but it would be good in future to include the "BUG" tag in the actual commit message (so that when we come to do the changelogs for 3.1.7 it'll get picked up automatically).

@tractorcow tractorcow closed this Oct 21, 2014
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

Successfully merging this pull request may close these issues.

2 participants