-
Notifications
You must be signed in to change notification settings - Fork 111
Use '(n)' suffix instead of timestamp prefix for uploaded image names #2376
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
Conversation
…attachment names are unique Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
24dc8de to
6759366
Compare
|
@eneiluj it's possible to create a test for it to prevent regressions? |
mejo-
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, works like a charm. Thanks a lot @eneiluj for looking into it 💜
One day we should add such a getUniqueFilename() function to Nextcloud itself - I already know of at least four independent implementations for that 🤪
|
@vinicius73 Yes I'll create a test, thanks for the suggestion. |
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
4047a08 to
c0c2964
Compare
|
We probably should backport this to stable24, no? |
|
/backport to stable24 |
|
@mejo- Yep! |
refs #2338
If
foo.pngis uploaded but already exists in the attachment folder, file is namedfoo (2).png. If uploaded again,foo (3).png. And so on.