Function to insert a file into the dbfiles table as a posterior
Usage
dbfile.posterior.insert(
filename,
pft,
mimetype,
formatname,
con,
hostname = PEcAn.remote::fqdn()
)Arguments
- filename
the name of the file to be inserted
- pft
the name of the pft that this data is applicable to
- mimetype
the mime-type of the file
- formatname
the name of the format to distinguish between simmilair mime-types
- con
database connection object
- hostname
the name of the host where the file is stored, this will default to the name of the current machine