Jump to content
Ketarin forum

Can't download file


josh
 Share

Recommended Posts

Apparently it's not a bug because I'm able to successfully download it with a variant of my latest 'Generic Template'.

 

Import and test this to see if it works for you... remember to modify it for your system and needs.

<?xml version="1.0" encoding="utf-16"?>
<Jobs>
 <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <DownloadBeta>AlwaysDownload</DownloadBeta>
   <DownloadDate xsi:nil="true" />
   <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
   <VariableChangeIndicator />
   <CanBeShared>true</CanBeShared>
   <ShareApplication>false</ShareApplication>
   <ExclusiveDownload>false</ExclusiveDownload>
   <HttpReferer />
   <Variables>
     <item>
       <key>
         <string>version</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>Textual</VariableType>
           <Regex />
           <TextualContent>{f:yyyy}-{f:MM}-{f:dd}</TextualContent>
           <Name>version</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>truncated_url</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>(?:"\.|'\.|"|')(((\w+:\/\/([\w@][\w.:@]+))?\/?[\w\s_\.?=%&=\-@/$,]*\.)(?:exe|7z|zip|zip2|arc|bz|bz2|bzip|gz|gzip|jar|lha|lzh|lzw|pak|rar|sit|sit!|sit5|sitd|sithqx|sitx|tz|wsz|cab|msi|bin|img|iso|xpi|pbp))(?:\?\w+"|\?\w+'|"|')</Regex>
           <Url>http://tds.diamondcs.com.au/download.php?file=apt</Url>
           <Name>truncated_url</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand />
   <ExecutePreCommand />
   <Category>Security\Miscellaneous</Category>
   <SourceType>FixedUrl</SourceType>
   <PreviousLocation />
   <DeletePreviousFile>true</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <LastUpdated xsi:nil="true" />
   <TargetPath>{target}\{category}\{appname:replace: :_}_v{f:yyyy}-{f:MM}-{f:dd}.{url:ext}</TargetPath>
   <FixedDownloadUrl>http://tds.diamondcs.com.au/{truncated_url}</FixedDownloadUrl>
   <Name>Advanced Process Termination</Name>
 </ApplicationJob>
</Jobs>

If it doesn't work for you or if you have any questions, just post back and I will try to help. ;)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.