[
https://issues.apache.org/jira/browse/TIKA-1545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tyler Palsulich updated TIKA-1545:
----------------------------------
Attachment: TIKA-1545.palsulich.patch
Patch which adds a form to the top of the the root server page. When you click
submit, the file is parsed and metadata/content is displayed.
This doesn't allow selection of which content is returned or in what format,
yet.
I'd be happy to extend this to other server endpoints, but they don't accept
multipart form data. So, that won't work.
If anyone wants to, you can try this out with the following steps:
{code}
cd tika/trunk
patch -p0 -i TIKA-1545.palsulich.patch
mvn clean install
java -jar tika-server/target/tika-server-1.8-SNAPSHOT.jar
{code}
Then go to localhost:9998 and try uploading a file.
> Create tika-server Frontend
> ---------------------------
>
> Key: TIKA-1545
> URL: https://issues.apache.org/jira/browse/TIKA-1545
> Project: Tika
> Issue Type: Improvement
> Components: server
> Reporter: Tyler Palsulich
> Assignee: Tyler Palsulich
> Fix For: 1.8
>
> Attachments: TIKA-1545.palsulich.patch
>
>
> The current server homepage only displays a list of available endpoints. I
> propose a front end which will allow a user to upload a file, select a
> dropdown of output format, check boxes of metadata/content, click submit, and
> view Tika's output.
> This will be a nice feature to have along with TIKA-1301. When a potential
> user asks what Tika does for [filetype], we can direct them to the VM so they
> can try it out.
> I'll upload a patch with a new endpoint which accepts a multipart/form-data
> input file. But, it's ugly... I'd prefer to make the call with Ajax. But, I
> don't know how to that with the current tika-server setup.
> A more complex, but pretty, example of something Tika should have is
> http://any23.org/.
> Thoughts?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)