v6.0.5.3 - issues with file download (ONDOWNLOAD)

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
gimber_sj
Posts: 7
Joined: Fri Jun 06, 2008 9:10 am
Location: Bristol

v6.0.5.3 - issues with file download (ONDOWNLOAD)

Post by gimber_sj » Fri Jun 06, 2008 10:04 am

Hi,

I upgraded my firefox plugin last night from v6.0.4.1 to v6.0.5.3, and noticed that the scripts that saved a PDF to a specific location on my hard disk no longer worked.

Code: Select all

TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:Form1 ATTR=ID:NEXT&&VALUE:Preview
ONDOWNLOAD FOLDER=C:\<path> FILE=<file>.pdf
TAG POS=1 TYPE=A ATTR=ID:CERTIFICATE&&TXT:Click<SP>here<SP>to<SP>view<SP>the<SP>certificate CONTENT=EVENT:SAVETARGETAS
Specifically, the FOLDER and FILE attributes were being ignored, so the files were ending up with the default filename in the default download folder, and not in the specified location with the specified filename.

I reinstalled firefox, adobe and the latest version of the iMacros plugin, but this didn't make a difference.

When I reverted back from v6.0.5.3 to v6.0.4.1, the issue immediately resolved itself and the downloads resumed normal operation.

You may need to take a look at this in case something is broken.

Regards

John.

System specs:

Windows XP SP2
Trend
2Gb RAM
Dual-core Dell laptop.
User avatar
Tech Support
Posts: 4948
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Re: v6.0.5.3 - issues with file download (ONDOWNLOAD)

Post by Tech Support » Fri Jun 06, 2008 6:08 pm

Can you please test with this macro:

Code: Select all

URL GOTO=http://www.iopus.com/download
ONDOWNLOAD FOLDER=d:\aaaout FILE=test.exe  
TAG POS=2 TYPE=A ATTR=TXT:*Download*   
It works for me (Win XP SP3, Firefox 2.0.0.14).
fochtmann
Posts: 5
Joined: Mon May 05, 2008 12:41 am

Re: v6.0.5.3 - issues with file download (ONDOWNLOAD)

Post by fochtmann » Thu Jul 17, 2008 4:22 pm

I tried your sample macro above, and it worked.

But I am experiencing the same problem as the other user with my macros that worked previously.

Dell Computer, 2 GB ram
FF 2.0.0.16
gimber_sj
Posts: 7
Joined: Fri Jun 06, 2008 9:10 am
Location: Bristol

Re: v6.0.5.3 - issues with file download (ONDOWNLOAD)

Post by gimber_sj » Thu Jul 17, 2008 4:53 pm

If it helps,

1. The path is "C:\EPC-Certificates" and the files are in the format "Test NI #01.pdf", "Test NI #02.pdf" etc.

Code: Select all

ONDOWNLOAD FOLDER=C:\EPCIP-Certificates FILE=Test<SP>#40.pdf
TAG POS=1 TYPE=A ATTR=ID:CERTIFICATE&&TXT:Click<SP>here<SP>to<SP>view<SP>the<SP>certificate CONTENT=EVENT:SAVETARGETAS
These have non-alpha characters and spaces in them, unlike the demo samples you have provided.

2. The file is a .NET2 aspx page.

3. I'm right-clicking on a hyperlink to save the link as... to get access to the PDF.

4. The file arrives in the Download folder and not the specified one, and ends up with a name other than the one provided in the ondownload command.

John.
juzamjedi
Posts: 17
Joined: Tue Jun 24, 2008 3:19 am

Re: v6.0.5.3 - issues with file download (ONDOWNLOAD)

Post by juzamjedi » Tue Jul 22, 2008 12:24 pm

Hello,

I have also tested the public ONDOWNLOAD example and it works. However, the trick is that you must use all lower case letters. This seems like a bug to me, but maybe that is the intended behavior. At a minimum this should probably be documented in the parameters for this feature.

http://wiki.imacros.net/ONDOWNLOAD#Parameters
User avatar
Tech Support
Posts: 4948
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Re: v6.0.5.3 - issues with file download (ONDOWNLOAD)

Post by Tech Support » Tue Jul 22, 2008 5:23 pm

Can you please retest with V6.0.6.2? It should fix this issue.
gimber_sj
Posts: 7
Joined: Fri Jun 06, 2008 9:10 am
Location: Bristol

Re: v6.0.5.3 - issues with file download (ONDOWNLOAD)

Post by gimber_sj » Thu Aug 28, 2008 10:50 am

Tech Support wrote:Can you please retest with V6.0.6.2? It should fix this issue.
I have retested with FF3.0.1 / WInXP Pro / iMacros 6.0.6.9, and the issue is still occurring.

The path and file components are being ignored.

Try again! :)

John.
Post Reply