Reputation: 401
I'm using CasperJS to do my automation things. But for file uploading, I upload images from other website using exec()
and wget
to my server, then use CasperJS and casper.uploadFile()
to post images on website.
Now I trying to post image using website image URL, I mean:
casper.then(function(){
this.uploadFile("input[type='file']", '/var/tmp/img.jpg');
})
but I want to do:
casper.then(function(){
this.uploadFile("input[type='file']", 'http://mywebsite.com/images/img.jpg');
})
and when I did that Casper just fails.
Upvotes: 1
Views: 122