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

Use Files instead of FileItems #904

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from
Open

Conversation

trevorgerhardt
Copy link
Member

Convert FileItems into java.io.Files before processing. We use Apache's FileUpload library to assist with handling incoming files using a DiskFileItemFactory that persists each incoming file to disk immediately. This means it is simple to convert each incoming file as a java.io.File instead of a FileItem. java.io.File is a much more common way of handling a file and will be easier to work with.

@trevorgerhardt trevorgerhardt marked this pull request as ready for review October 28, 2023 02:16
@trevorgerhardt trevorgerhardt added cleanup t0 Time level 0: think hours labels Oct 28, 2023
@trevorgerhardt trevorgerhardt enabled auto-merge (rebase) October 28, 2023 02:16
We use Apache FileUpload to assist with handling incoming files. We also use a DiskItemFactory that persists each incoming file to disk immediately. This means that we could represent each incoming file as a java.io.File instead of a FileItem. java.io.File is a much more common way of handling a file and easier to work with.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup t0 Time level 0: think hours
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant