Skip to content

Conversation

@dlvx
Copy link

@dlvx dlvx commented Dec 2, 2016

Added boolean property IE9_optionalFile in order to be able to do requests without any selected file. So the file can be optional and we can still send the data from other input fields passed as children to the FileUpload component.

The scenario that made me do this change for our project was because we have a comment textarea that we are passing to fileUpload as a child, but we wanted the file to be optional and only send the comment if the user doesn't want to attach a file (I only added the prop to work for IE9 in the IEUpload function because there is no issue with modern browsers when we don't attach any file)

You may have a better solution for this, but at least you can get my idea.
Thanks.

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.

2 participants