Skip to content

allow file upload without filename - #693

Open
warncke wants to merge 1 commit into
expressjs:mainfrom
overleaf:ew-allow-file-without-filename
Open

allow file upload without filename#693
warncke wants to merge 1 commit into
expressjs:mainfrom
overleaf:ew-allow-file-without-filename

Conversation

@warncke

@warncke warncke commented Dec 7, 2018

Copy link
Copy Markdown

This is an edge case where a client is sending an upload request without a filename but with the content type of application/octet-stream so it gets silently ignored.

Per the spec filename is not required (https://tools.ietf.org/html/rfc1867) so even if this is a rare case it seems reasonable to allow.

@LinusU

LinusU commented Dec 13, 2018

Copy link
Copy Markdown
Member

Hmmm, do you think that this should be a breaking change? 🤔

I'm guessing yes maybe? 🤔

@warncke

warncke commented Dec 13, 2018

Copy link
Copy Markdown
Author

i don't have a good answer on this. it does change the behavior significantly, but it applies to a very narrow set of cases, and it makes the behavior more consistent with the specs, so not sure how you classify it.

at the end of the day i don't think many people are encountering this issue or it would have been raised before so probably best to err on the side of caution and not breaking anything for existing users.

@UlisesGascon
UlisesGascon changed the base branch from master to v2 May 22, 2025 13:35
@UlisesGascon
UlisesGascon force-pushed the main branch 2 times, most recently from 2ad8b68 to eef7444 Compare August 28, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants