Skip to content

Fix handling files with the same name#358

Closed
ololoepepe wants to merge 1 commit into
node-formidable:masterfrom
ololoepepe:patch-1
Closed

Fix handling files with the same name#358
ololoepepe wants to merge 1 commit into
node-formidable:masterfrom
ololoepepe:patch-1

Conversation

@ololoepepe

Copy link
Copy Markdown

If there are multiple files with the same name, append random string to the name

If there are multiple files with the same name, append random string to the name
@felixge

felixge commented Jan 11, 2017

Copy link
Copy Markdown
Collaborator

#412

@GrosSacASac

Copy link
Copy Markdown
Contributor

Doing this on the file event is too late.

Do we really want this feature ? File inputs in the browser make it impossible to have the same name.

@GrosSacASac

Copy link
Copy Markdown
Contributor

With the new filename option you can loop over form.openedFiles and chose a different name if needed

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

Successfully merging this pull request may close these issues.

4 participants