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

Fix processing multipart form data #1055

Merged
merged 1 commit into from
Jun 13, 2023

Conversation

altro3
Copy link
Collaborator

@altro3 altro3 commented Jun 11, 2023

No description provided.

@altro3 altro3 requested a review from graemerocher June 11, 2023 13:18
@altro3 altro3 force-pushed the fix_multipartformdata branch 2 times, most recently from f9f498e to 0c47020 Compare June 11, 2023 16:08
@altro3 altro3 force-pushed the fix_multipartformdata branch from 0c47020 to e39412d Compare June 11, 2023 16:13
*/
public static boolean isFileUpload(ClassElement type) {
String typeName = type.getName();
return "io.micronaut.http.multipart.StreamingFileUpload".equals(typeName)
Copy link
Contributor

Choose a reason for hiding this comment

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

are these types not accessible in the context?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Available, but that's not my code. so it was written before me. In general, I'm thinking about abandoning the direct use of the micronaut-http library and converting all places to strings, instead of explicit classes, and leaving only micronaut injection and micronaut core in dependencies. But this is just an idea for now. In any case, I don't see a problem with using the explicit class name and not the class itself at that point.

@graemerocher graemerocher merged commit 4215345 into micronaut-projects:4.9.x Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants