Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tika Wiki" for change notification.
The "TikaJAXRS" page has been changed by sergey_beryozkin: https://wiki.apache.org/tika/TikaJAXRS?action=diff&rev1=42&rev2=43 = Services = All services that take files use HTTP "PUT" requests. When "PUT" is used, the original file must be sent in request body without any additional encoding (do not use multipart/form-data or other containers). - Additionally, Tika Resource Service accepts POST multipart/form-data requests, where the original file is sent as a single attachment. + Additionally, TikaResource, Metadata and RecursiveMetadata Services accept POST multipart/form-data requests, where the original file is sent as a single attachment. Information services (eg defined mimetypes, defined parsers etc) work with HTML "GET" requests. @@ -314, +314 @@ ... ] }}} + + === Multipart Support === + + Metadata Resource also accepts the files as multipart/form-data attachments with POST. + Posting files as multipart attachments may be beneficial in cases when the files are too big for them to be PUT directly in the request body. + Note that Tika JAX-RS server makes the best effort at storing some of the multipart content to the disk while still supporting the streaming: + + {{{ + curl -F upload=@test_recursive_embedded.docx URL http://localhost:9998/rmeta/form + }}} + + Note that the address has an extra "/form" path segment. + + == Unpack Resource == {{{ /unpack
