The DataObject initialize() needs the location of the source data (filename) and the
name (stored in sysmeta) of the file to download to. Both these items can be
derived from the filename argument, so suggestedFilename can be removed.
Input data can be specified via the dataobj parameter, in which case filename must still
be specified, to only be used as sysmeta.fileName and not the data source.
Also ensure that filename works for both relative and absolute filenames.
The
DataObject initialize()
needs the location of the source data (filename) and the name (stored in sysmeta) of the file to download to. Both these items can be derived from thefilename
argument, sosuggestedFilename
can be removed. Input data can be specified via thedataobj
parameter, in which casefilename
must still be specified, to only be used assysmeta.fileName
and not the data source.Also ensure that
filename
works for both relative and absolute filenames.