On Sat, Apr 23, 2011 at 1:43 PM, Fazlan Sabar <[email protected]> wrote:

> Hi,
>
> In WebDAV, I made 'text/plain' as the default media-type when a new
> non-collection resources gets created with no extension. May be the same can
> be applied in this case as well.
>

The normal practice is "application/octet-stream" (in browsers, and
file-systems) isn't it. That's technically correct as well, since not not
streams on bytes would translate into text. So, I think we might need to fix
that in WebDAV as well. Thoughts are welcome.

Thanks,
Senaka.

>
>
> On Sat, Apr 23, 2011 at 12:47 AM, Senaka Fernando <[email protected]> wrote:
>
>>
>>
>> On Sat, Apr 23, 2011 at 12:45 AM, Sumedha Rubasinghe <[email protected]>wrote:
>>
>>> Devs,
>>> pls consider adding the extra line of setting the content type when
>>> creating resourses using registry api. Since most of the resources we
>>> create fall under text/plain, setting that would allow editting
>>> content using registry editor itself.
>>> This becomes very handy when debugging or doing quick fixes.
>>>
>>
>> +1. We can figure out the type of resource based on extension, but if
>> that's not available (which is the common case for the stuff that we
>> programmatically add - for some reason), we can't figure out the media type.
>>
>> Thanks,
>> Senaka.
>>
>> /sumedha
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> [email protected]
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>
>>
>>
>> --
>> *Senaka Fernando*
>> Product Manager - WSO2 Governance Registry;
>> Associate Technical Lead; WSO2, Inc.; http://wso2.com*
>> Member; Apache Software Foundation; http://apache.org
>>
>> E-mail: senaka AT wso2.com
>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>> Linked-In: http://www.linkedin.com/in/senakafernando
>>
>> *Lean . Enterprise . Middleware
>>
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> [email protected]
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Thanks,
> Fazlan
>
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
*Senaka Fernando*
Product Manager - WSO2 Governance Registry;
Associate Technical Lead; WSO2, Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

E-mail: senaka AT wso2.com
**P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
Linked-In: http://www.linkedin.com/in/senakafernando

*Lean . Enterprise . Middleware
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to