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

When file input is left blank, still a temporary file is created #49

Open
rubenmoor opened this issue Dec 17, 2020 · 3 comments
Open

When file input is left blank, still a temporary file is created #49

rubenmoor opened this issue Dec 17, 2020 · 3 comments

Comments

@rubenmoor
Copy link

I don't know if is intended that way. It confused me a bit. I guess I can check whether or not the user actually filled in the file input by check fdFileName.

@rubenmoor
Copy link
Author

rubenmoor commented Dec 17, 2020

Turns out that fdFileName even has a value that is not the empty string. How to check if a file input actually contains any file?

@rubenmoor
Copy link
Author

Turn out that fdFileName has the value "", i.e. a non-empty string with to quotes in it. The problem might be related to the fact that I am having two file inputs in my multipart form.

@tfc
Copy link
Contributor

tfc commented Apr 29, 2021

I also ran into this. checking for the value "" in fdFileName is also the method i came up with to check for this condition, but it feels unsound.

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