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

File Upload - Option to Remove GUID from File Names #6015

Open
mchtbrt opened this issue Feb 15, 2025 · 1 comment
Open

File Upload - Option to Remove GUID from File Names #6015

mchtbrt opened this issue Feb 15, 2025 · 1 comment
Assignees

Comments

@mchtbrt
Copy link

mchtbrt commented Feb 15, 2025

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

  1. Add a File Upload component in Form.io.
  2. Set the File Name Template to {{fileName}}.
  3. Upload a file (e.g., document.pdf).
  4. The uploaded file will be renamed to something like document-abc1234.pdf, where abc1234 is an unwanted GUID.
@daneformio
Copy link
Contributor

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?

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

No branches or pull requests

2 participants