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-Disposition attachment;filename="bookPDF2.pdf" > Content-Language bg > Content-Length 18846023 > Content-Type application/pdf > Date Thu, 23 Jan 2014 08:25:22 GMT > Expires Thu, 23 Jan 2014 09:25:22 GMT > Last-Modified Tue, 21 Jan 2014 20:13:43 GMT > Server Apache-Coyote/1.1 > Vary User-Agent > X-Cocoon-Version 2.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=119420431&iu=/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=119420431&iu=/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