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

Submission of Microsoft Office files #1618

Open
danielfang97 opened this issue Feb 5, 2025 · 1 comment
Open

Submission of Microsoft Office files #1618

danielfang97 opened this issue Feb 5, 2025 · 1 comment
Assignees
Labels
Milestone

Comments

@danielfang97
Copy link
Collaborator

When submitting microsoft office files (.xlsx, .docx), the submission parser is breaking them up into multiple .xml files instead of failing and trying to submit as an attachment.

@danielfang97 danielfang97 added this to the SBH 1.6.2 milestone Feb 5, 2025
@cjmyers
Copy link
Collaborator

cjmyers commented Feb 7, 2025

Unfortunately, this appears to be by design. Namely, Microsoft files are containers like Zip files (see http://officeopenxml.com). This means when you submit this file to SBH, it thinks it is a Zip file and unzips it before submitting. When it finds it is a bunch of non-SBOL files, it submits the files one at a time as separate attachments. If you Zip a Microsoft file, then submit it, it will attach as a single file, since we do not recursively unzip. The only way I can think to address this would be to not try to unzip a file unless it ends with ".zip" at the end of the filename. Alternatively, we could not unzip anything with a ".docx", ".pptx", etc. file extension, but I'm not sure what all the extensions are that we should exclude.

@danielfang97 Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants