1

I upload files on the frontend using AJAX requests to actionUpload controller. When file is uploaded, I immediately display it using filename returned by controller.

In case if filename conflict, the duplicate file is created, with a name like something_200518_221543.jpg. How can I retrieve this duplicate filename, so I can display this file too? In control panel, this duplicate filename is somehow appended to the page, but I don't know how - there is no request that returns this new filename from backend.

1 Answer 1

1

This will be possible as of the next Craft release, which will be 3.4.21: https://github.com/craftcms/cms/commit/a787fe0ef37841706a5a9910fbeae0391da3be6f

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.