Hi Evgeni,
When the size of a file exceeds the threshold, the file will be attached.
Default threshold size is 8MB and it is configurable.
The property in dspace.cfg is;
for XMLUI: xmlui.content_disposition_threshold
for JSPUI: webui.content_disposition_threshold
See the manual for the detail,
https://wiki.duraspace.org/display/DSDOC4x/Configuration+Reference#ConfigurationReference-ContentInlineDispositionThreshold
Keiji Suzuki
Ebetsu, Japan
2014/1/23 Evgeni Dimitrov dimitrove@gmail.com:
The Response header is bellow.
When and why is a file served as attachment?
Is this configurable?
=
Response Headers view source
Content-Dispositionattachment;filename=bookPDF2.pdf
Content-Languagebg
Content-Length18846023
Content-Typeapplication/pdf
DateThu, 23 Jan 2014 08:25:22 GMT
ExpiresThu, 23 Jan 2014 09:25:22 GMT
Last-ModifiedTue, 21 Jan 2014 20:13:43 GMT
ServerApache-Coyote/1.1
VaryUser-Agent
X-Cocoon-Version2.2.0
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette:
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette