The uploaded file's temp name used the input's own name as the prefix handed to File.createTempFile, which rejects anything shorter than three characters. Uploading to an input called "dc" therefore threw IllegalArgumentException - past the IOException catch, so the client saw only a 500 that reads as "Failed to upload file" in the UI, with nothing naming the real cause. A filename carrying a path separator failed the same way. Sanitise and pad both parts: neither is the uploader's mistake to pay for, and nothing downstream reads meaning out of the temp name beyond the extension, which is preserved. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .mvn/wrapper | ||
| src | ||
| .gitattributes | ||
| .gitignore | ||
| Dockerfile | ||
| README.md | ||
| mvnw | ||
| mvnw.cmd | ||
| ollama-preloaded-docker | ||
| pom.xml | ||
| run_service.sh | ||
README.md
RUN LOCAL SERVICE
./run_service.sh
BUILD DOCKER IMAGE
docker buildx build –platform linux/amd64,linux/arm64 -t luciolelii/humainflow:latest . –push