Issue
- When users choose a file while editing it, the filename is not automatically updated.
- Steps to reproduce:
1. Start a vanilla instance of DXP 7.4
2. Upload a new document 'abc.pdf' to Document and Media and notice the name is auto-picked as 'abc.pdf'> Publish it.
3. Now, edit this uploaded document 'abc.pdf' and upload another document 'abc.docx' , notice that the name doesn't auto-pick according to the new name > publish it
4. Download the document and open it locally
Expected Behavior: The document should be downloaded as 'abc.pdf.docx' and open properly in local
Observed Behavior: The document is downloaded as 'abc.pdf' and it is corrupted
Environment
- Liferay DXP 7.4
Resolution
- The observed behavior is expected behavior in DXP 7.4. It is intended to not change the filename on update automatically as Liferay's current implementation doesn't override what the user might have defined.
- The usual case for changing the file is to provide an updated version (of the same image, pdf, doc, etc), so it's not considering the case of changing completely the file.
- However, warning the user about this behavior with a UI message or something, so they could modify it manually, is something that might be improved with the product, but unfortunately, this is not currently in the plans (at the time of writing this article).
Additional Information
- How to participate in feature requests: Requesting-a-New-Feature-or-Feature-Improvement
- The product team will test the code extensively to ensure that there are no regressions or functional breaks before deciding whether to incorporate the new idea or any implementation, depending on whether it can be integrated with current functionalities or not. There is no estimated time of arrival (ETA) for that, and new implementation will always come with new updates.
Subscriber Exclusive Content
A Liferay Enterprise Subscription provides access to over 1,500 articles that include best practices, troubleshooting, and other valuable solutions. Sign in for full access.
Sign In