Download files

Parent Previous Next


Datacol can recognize links to remote files in the datafield found value code (as well as links to images). These files (images) can be downloaded to the local computer.


Download files. If this option is ON links (files), recognized in datafield found value, are downloaded to the local computer.


Attempts. Maximum attempts to load webpage repeatedly when load fails.


Final extension. Extension finally assigned to download files. If it is not specified the original extension remains.


Download folder. Path to the folder where files are downloaded to. If this setting is not specified My pictures folder is used by default.


Virtual path. Virtual path of your server directory where files will be uploaded to. Virtual path is specified relatively to the server root directory.


Return value. This setting is used to specify the final format of datafield value where links to files are recognized:


- Full value. Entire found field value will be returned as a result. Note that paths to downloaded files are replaced with virtual paths, specified by corresponding setting. Thus, if you upload downloaded files to your server (and publish extracted content as well) - links to files, located in content, will link to files on your server.



- Virtual path. Comma-joined downloaded files virtual paths will be returned as a result.



- Local path. Comma-joined downloaded files local paths will be returned as a result.



Existing file processing. If the file already exists on the local computer Datacol can carry the following operations, depending on given block settings:


- Overwrite existing. Existing file is replaced with a new downladed one.


- Save existing. Downloading is ignored if the file already exists.


- Add with 1. A new file, which name will differ from the existing one due to the adding of constantly incremented number, is created.



Link identification rules (for advanced users!). Regex list to recognize links to files in the datafield found value (in particular, link is identified with the first group of regex). If setting is not specified the following rules are used by default:


Rule, appropriate for most cases when files are stored:

href=["']([^<>'"]*?)["']


Rule, appropriate for most cases when images are stored:

src=["']([^<>'"]*?)["']


Extensions. List of file extensions allowed for downloading. If setting is not specified, all extnsions are allowed (any file can be downloaded).


Filename generation. This block is used to specify file name generation rules.


- Original. File remains with original name.


- Random. File name is generated randomly.


- Formula. File name is generated with formula which may contain found values of datafields extracted earlier. Note that datafields, used in formula, must be located higher in datafield list than the given field where file downloading is being set up.  




Subfolder generation. This block is used to specify downloadable file subfolder generation rules (relatively to Download folder). Note that if you upload files via FTP, server subdirectories will be generated automatically. Thus, the mechanism is maximally convenient. The following options are available in this block:


- No generation. Subfolder generation is not performed. Files are saved to folder specified with Download folder setting.


- Formula. Subfolder name is generated with formula which may contain found values of datafields extracted earlier. Note that datafields, used in formula, must be located higher in datafield list than the given field where file downloading is being set up.  




File download plugin. The setting is used to specify plugin, overriding file standard download mechanism.  

Created with the Personal Edition of HelpNDoc: Free help authoring tool