Page 1 of 1

How to upload images to ebay Kleinanzeigen (and Kijiji.ca)

Posted: Wed Aug 06, 2014 1:50 pm
by Tom, Tech Support
This post applies to uploading images when creating a new ad on the German ebay classifieds site kleinanzeigen.ebay.de using iMacros for IE freeware or Standard/Enterprise editions.
kleinanzeigen.png
Even though recording the steps to upload an image works, the macro needs to be tweaked slightly for it to play back successfully.

After recording a click on the blue "Bilder hinzufügen" button to select and upload the image, the following commands are recorded (in this example we are selected the imacros-keyword-assertion-text.png image file located in the iMacros\DataSources folder):

Code: Select all

TAG POS=1 TYPE=INPUT:FILE ATTR=ID:html5_18ulol9fp1ee918r1173inl1pd35 CONTENT=C:\fakepath\imacros-keyword-assertion-text.png
TAG POS=1 TYPE=BUTTON FORM=ACTION:http://kleinanzeigen.ebay.de/anzeigen/p-anzeige-abschicken.html ATTR=ID:pictureupload-pickfiles
To make this work, we need to move the CONTENT parameter to the second TAG command and fix the path, then remove the first TAG command:

Code: Select all

TAG POS=1 TYPE=BUTTON FORM=ACTION:http://kleinanzeigen.ebay.de/anzeigen/p-anzeige-abschicken.html ATTR=ID:pictureupload-pickfiles CONTENT=C:\Users\admin\Documents\iMacros\DataSources\imacros-keyword-assertion-text.png
This command will now successfully upload the image each time it is executed.
kleinanzeigen image uploaded.png
The same method can be used to upload images to Kijiji.ca. Recording the image upload on this site results in the following:

Code: Select all

TAG POS=1 TYPE=BUTTON ATTR=ID:ImageUploadButton
TAG POS=1 TYPE=INPUT:FILE ATTR=ID:html5_1abj9ajgn13e114jfjofu151nlg3 CONTENT=C:\Users\admin\Documents\iMacros\DataSources\imacros-keyword-assertion-text.png
TAG POS=1 TYPE=BUTTON ATTR=ID:ImageUploadButton
This should be changed to:

Code: Select all

TAG POS=1 TYPE=BUTTON ATTR=ID:ImageUploadButton CONTENT=C:\Users\admin\Documents\iMacros\DataSources\imacros-keyword-assertion-text.png