Skip to content

docs(15.9): upload files with POST in the admin API pages - #556

Merged
marevol merged 1 commit into
mainfrom
docs/admin-dict-upload-post
Sep 25, 2026
Merged

marevol merged 1 commit into
mainfrom
docs/admin-dict-upload-post

Conversation

@marevol

@marevol marevol commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Summary

The admin API pages document file uploads as PUT requests with multipart/form-data. A multipart body sent with PUT never delivers its file, so every documented upload request fails with a "file is required" error.

This changes the uploads to POST on the following 15.9 pages, in every language (de, en, es, fr, ja, ko, zh-cn):

  • api/admin/api-admin-dict.rst: /api/admin/dict/{type}/upload/{dictId}
  • api/admin/api-admin-badword.rst: /api/admin/badword/upload
  • api/admin/api-admin-elevateword.rst: /api/admin/elevateword/upload
  • api/admin/api-admin-storage.rst: /api/admin/storage/upload

On each page, the endpoint table row, the request line and the curl example change from PUT to POST.

Dependency

This depends on the Fess change that adds POST handlers for these upload endpoints (codelibs/fess#3494). Without that change, POST to these paths returns 404. Please merge this PR after the Fess change.

A multipart/form-data upload sent with PUT never delivers its file, so
the documented PUT upload requests of the admin API always fail with a
"file is required" error. Fess now accepts these uploads by POST.
Change the endpoint table, the request line and the curl example to
POST on the dictionary, bad word, elevate word and storage API pages in
every language.
@marevol marevol self-assigned this Sep 25, 2026
@marevol
marevol merged commit 497d448 into main Sep 25, 2026
2 checks passed
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.

1 participant