Hi,
I have been attempting to use RELS-INT to specity the name of a
downloaded file and got it working with Opera but not any other browser,
anybody have any better luck.
In Chrome it just downloads the file without the extension just the
filename (does not seem to recognise the mimetype).
In Firefox it just downloads the file without the extension just the
filename, but it does recognise the correct mimetype.
In IE it just downloads the file without the extension just the
filename (does not seem to recognise the mimetype).
Using wget the mimetype is correct, but the content length is not
specified and it downloads without the extension.
I thought I had got this sorted but I must have broken it again :(
Below is the section from fedora.cfg:
<param name="datastreamContentDispositionInlineEnabled" value="true">
<comment>determines if a content-disposition header specifying
"inline" and
a filename is added to the response for the REST API
getDatastreamDissemination
when no query parameter of download=true is specified. Browser support for
recognising a filename in case of "inline" content disposition is
patchy,
so you may wish to disable the content disposition header in this case and
only
have it provided when download=true is specified, in which case the content
disposition
of "attachment" will be used; which is generally
supported.</comment>
</param>
<param name="datastreamFilenameSource" value="rels id">
<comment>determines the source of the filename generated when download=true
on a datastream dissemination. Value is space separated list of label: use
the datastream label;
id: use the datastream ID; rels: use the value defined in RELS-INT. Each
source is checked in order, and the first containing a value is used. Omit
any of the sources if that source is never to be used. If no sources are to
be used,
and just the default filename and extension below are to be used, specify
" ".</comment>
</param>
<param name="datastreamExtensionMappingLabel" value="never">
<comment>Controls filename extension mapping when the datastream label is
used
as the source of the filename. Values are always: always generate an
extension
based on the MIMETYPE, using the default extension if none can be determined;
ifmissing: generate an extension if the filename obtained from the source
does not
already contain one (again returning the default if there is no
MIMETYPE-to-extension
mapping is found); never: never generate an extension, use the filename from
the source
as-is</comment>
</param>
<param name="datastreamExtensionMappingId" value="never">
<comment>Controls filename extension mapping when the datastream ID is used
as the source of the filename. Values are as above.</comment>
</param>
<param name="datastreamExtensionMappingRels" value="always">
<comment>Controls filename extension mapping when RELS-INT is used
as the source of the filename. Values are as above.</comment>
</param>
<param name="datastreamExtensionMappingDefault" value="always">
<comment>Controls filename extension mapping when no filename can be
determined from
the sources listed in datastreamFilenameSource. Values are always: always
generate an extension
based on the MIMETYPE (using the default if no appropriate mapping is
specified);
never: never generate an extension.</comment>
</param>
<param name="datastreamDefaultFilename" value="download">
<comment>Filename to use for datastream downloads when none can be
determined from the
sources listed in datastreamFilenameSource.</comment>
</param>
<param name="datastreamDefaultExtension" value="bin">
<comment>Extension to use when none can be determined from
mappings</comment>
</param>
<param name="datastreamExtensionMappingSource" value="mime-to-extensions.xml">
<comment>Source of mappings from MIMETYPE to file extension</comment>
</param>
Regards,
Ben
---------------------------------------------------------------------
Dr Ben Ryan
Timescapes Archive Technical Officer
School of Sociology and Social Policy
Faculty of Education, Social Sciences and Law
Social Science Building
The University of Leeds
Leeds LS2 9JT
Email: [email protected]
Tel: 0113 343 7319
Website: http://www.timescapes.leeds.ac.uk
---------------------------------------------------------------------
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users