Skip to content

Conversation

@timyates
Copy link
Contributor

@timyates timyates commented Jul 9, 2024

Posting a CSV via the 'Upload Hours' screen was broken.

This PR removes the Content-type header (as this has to be set by the fetch command to include the boundary) And switches to use body instead of data (body is passed as-is, but data is stringified to json which breaks FormData)

Posting a CSV via the 'Upload Hours' screen was broken.

This PR removes the `Content-type` header (as this has to be set by the fetch command to include the boundary)
And switches to use `body` instead of `data` (`body` is passed as-is, but `data` is stringified to json which breaks `FormData`)
@timyates timyates added bug Something isn't working web-ui labels Jul 9, 2024
@timyates timyates requested review from mkimberlin and mvolkmann July 9, 2024 10:47
@timyates timyates self-assigned this Jul 9, 2024
@timyates timyates merged commit 8cd58a1 into develop Jul 11, 2024
@timyates timyates deleted the bugfix-fix-file-upload branch July 11, 2024 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working web-ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants