formio.js
formio.js copied to clipboard
File Upload - Option to Remove GUID from File Names
Description
Currently, in Form.io's File Upload component, a GUID is automatically appended to the uploaded file names, even if the {{guid}} variable is not included in the File Name Template.
There are cases where users do not want GUIDs to be added to file names. However, the system enforces it regardless of the provided template.
Expected Behavior
- Provide an option to disable GUID addition to file names.
- When
{{fileName}}is used as the File Name Template, the uploaded file should retain its original name without a GUID suffix.
Current Behavior
- The system forces the addition of a GUID even if the template does not include
{{guid}}. - There is no way to disable this behavior.
Steps to Reproduce
- Add a File Upload component in Form.io.
- Set the File Name Template to
{{fileName}}. - Upload a file (e.g.,
document.pdf). - The uploaded file will be renamed to something like
document-abc1234.pdf, whereabc1234is an unwanted GUID.
Hello! Could you please help me understand your use case a little better? What issues is the addition of the GUID causing? What file storage provider are you using?
The File Upload component is a premium component available to enterprise customers, have you contacted [email protected] regarding this?