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

Implement mtom xop file upload #53

Merged
merged 3 commits into from
Feb 20, 2025
Merged

Conversation

lukasbabula
Copy link
Contributor

Implement MTOM file upload endpoint to avoid encoding file content into base64 and then having the server parse it as a part of XML causing performance issues with files larger than 5MB.

@lukasbabula lukasbabula linked an issue Feb 3, 2025 that may be closed by this pull request
@lukasbabula lukasbabula requested a review from mpinter February 3, 2025 09:55
@lukasbabula lukasbabula self-assigned this Feb 19, 2025
@lukasbabula lukasbabula marked this pull request as draft February 19, 2025 12:09
@lukasbabula
Copy link
Contributor Author

@mpinter this depends on #63

I will need to resolve the eslint issues here also afterwards (with the new eslint config from #63)

Copy link
Contributor

@mpinter mpinter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 code looks right, did not load locally or test. 🚢

test('MTOM request', async () => {
const fileName = 'plain-data.txt'

console.log('start reading')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you may not want/need this in the commited tests ? but if you prefer keeping the logs then ok

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was there before with the original file, so i only kept the notation. But now after thinking about it, I probably don't want it there, since the test files are very small anyway.

@mpinter mpinter added pr: fix & ship 🚢 No additional review needed before merge - some work may be required, if specified in last review and removed pr: needs review 🙏 labels Feb 20, 2025
@lukasbabula lukasbabula marked this pull request as ready for review February 20, 2025 10:19
@lukasbabula lukasbabula merged commit 65e9c82 into master Feb 20, 2025
2 checks passed
@lukasbabula lukasbabula deleted the 45-file-upload-mtom-xop branch February 20, 2025 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: fix & ship 🚢 No additional review needed before merge - some work may be required, if specified in last review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement file upload using MTOM
2 participants