[ 
https://issues.apache.org/jira/browse/CONNECTORS-767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13750020#comment-13750020
 ] 

Karl Wright commented on CONNECTORS-767:
----------------------------------------

I believe rd.setMimeType() is already called by WebConnector.  So is 
rd.setURL().  The question is whether we should extract a filename even though 
there isn't one in an http request.

One way to create a file name would be to make a wget-style file name.  That 
would probably be most consistent with our other connectors.


                
> 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

Reply via email to