PDA

View Full Version : downloading the wrong file



daSpud
08-13-2010, 11:55 AM
DLStudio seems to be confused when it sees a button that has a ".exe" in the description, but is actually not for an EXE file directly.

I beta test for a company and they had this snippet of code for their download button. DLStudio kept intercepting the request thinking it was an EXE file, but it would download the CFM which did me no good.

I finally changed the integration options (I am using Opera) to NOT download EXE files and then I got the prompt from Opera to download the file and all was well.

I could not find any other way to keep the DL from being intercepted. Shift click does not work in Opera.

Should DLStudio be interested in this download? I was not sniffing.

Thanks, Bob Roos

<h1>Downloads</h1>


<h2>Prog RC1</h2>
<table class="testList" width="95%" align="center">
<tr>
<th>File name</th>
<th>Size</th>
<th>Connection required</th>
<th>&nbsp;</th>
</tr>

<form action="test_doStoredDownload.cfm" method="post">
<tr class="even">
<td>Prog_Pro_RC1.exe </td>
<td align="center">&lt; 1 MB</td>

<td>Any</td>

<td align="center" valign="middle" >
<input type="submit" class="formButton" value="Download" onclick="Status = 'download beta file'; return true;">
<input name="FileName" type="Hidden" value="Prog_ro_RC1.exe ">
<input name="FileType" type="Hidden" value="exe">
<input name="FileID" type="Hidden" value="28114">
<input name="ContactID" type="Hidden" value="5148">
<input name="session.test.testname" type="Hidden" value="Prog Beta">
<input name="DLStyle" type="Hidden" value="Beta">
</td>
</tr>
</form>

</table>

Peter
08-17-2010, 02:04 PM
Opera loads the DownloadStudio plugin in Opera when a mimetype of application/octet-stream, application/x-msdownload, application/exe, application/x-msdos-program, application/force-download, application/x-download, is detected so it might be the case that the server is reporting one of these mimetypes when test_doStoredDownload.cfm is loaded. Most likely it is application/octet-stream, this is used when a binary stream is sent to the browser, Opera detects this and loads DownloadStudio.

daSpud
08-17-2010, 02:26 PM
Thanks for that information. Now the question becomes how do I STOP Opera from doing that (short of removing all support for DownloadStutio in Opera)? BTW, that is what I had to do to get my file. The Shift and click method doesn't work.

Is there an option in DLS where I can temporarily turn off automatic downloading? I guess if Opera is calling DLS then it can't call opera back and say I don't want to DL this file? :)

My situation is that I was at a friend's and needed to DL a 450MB file and it had to go through this link to get things started. That link was to their own download manager ironically, but it is the only way to get the product that I was testing for them (pre-release copy).

I like DLS but wish I could turn it off for cases like this. Just make it totally invisible so Opera would not even think of calling it.

Thanks, Bob Roos

Peter
08-17-2010, 03:12 PM
We could modify the DownloadStudio Plugins for Opera to read preferences from the Windows registry, this would allow the options for downloading files in Opera to be switched on/off. We will investigate the issue to find the best method of implementing this.