[
https://issues.apache.org/jira/browse/CONNECTORS-767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13750070#comment-13750070
]
Karl Wright commented on CONNECTORS-767:
----------------------------------------
First, if you implement this in the web connector, it should not only use files
with the specified extensions. But regardless, I don't think there is any
requirement that the rd.setFileName() not include a path. Since
Wget-conventions are used in other connectors (notably the file system
connector and HDFS connector), I think if you were going to convert a URL to a
filename, you should use that code.
> Can we get file name in Web Connector?
> --------------------------------------
>
> Key: CONNECTORS-767
> URL: https://issues.apache.org/jira/browse/CONNECTORS-767
> Project: ManifoldCF
> Issue Type: Bug
> Components: Web connector
> Affects Versions: ManifoldCF 1.3
> Reporter: Shinichiro Abe
> Priority: Trivial
>
> Although file and sharedDrive connectors get file name, web connector does
> not get file name currently. Can web connector get a file name like below? :
> RepositoryDocument rd = new RepositoryDocument();
> rd.setFileName(filename from URL);
> rd.setBinary(InputStream);
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira