raptortrex 2 Posted May 25, 2012 Report Share Posted May 25, 2012 He, I'm working on a bot that upload videos to the clipbucket video platform.Everything works greate, but when i click the brouwse button, a windows popup "open file" comes up.How can i fill this box with the video path? I have setup a test site http://ebookinghotels.nl/clip/upload#current_file_upload_div No login is needed. If you can help you can test on this site regards Quote Link to post Share on other sites
a2mateit 395 Posted May 25, 2012 Report Share Posted May 25, 2012 For some reason, change file field is not working for me on this site either. Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted May 25, 2012 Report Share Posted May 25, 2012 thats because its a flash object and ubot sees it as an image not a file upload area. <object style="visibility: visible;" id="file_uploadsUploader" data="http://ebookinghotels.nl/clip/js/uploadify/uploadify.swf" type="application/x-shockwave-flash" height="30" width="120"><param value="high" name="quality"><param value="opaque" name="wmode"><param value="always" name="allowScriptAccess"><param value="uploadifyID=file_uploads&pagepath=/clip/&buttonText=Browse%20videos&script=http://ebookinghotels.nl/clip/actions/file_uploader.php&folder=&width=120&height=30&wmode=opaque&method=POST&queueSizeLimit=999&simUploadLimit=1&fileDesc=Video Files&fileExt=*.wmv;*.avi;*.divx;*.3gp;*.mov;*.mpeg;*.mpg;*.xvid;*.flv;*.asf;*.rm;*.dat;*.mp4;*.jpg&multi=true&auto=true&fileDataName=Filedata&queueID=fileUploadQueue" name="flashvars"></object> Quote Link to post Share on other sites
raptortrex 2 Posted May 26, 2012 Author Report Share Posted May 26, 2012 (edited) thats because its a flash object and ubot sees it as an image not a file upload area. <object style="visibility: visible;" id="file_uploadsUploader" data="http://ebookinghotels.nl/clip/js/uploadify/uploadify.swf" type="application/x-shockwave-flash" height="30" width="120"><param value="high" name="quality"><param value="opaque" name="wmode"><param value="always" name="allowScriptAccess"><param value="uploadifyID=file_uploads&pagepath=/clip/&buttonText=Browse%20videos&script=http://ebookinghotels.nl/clip/actions/file_uploader.php&folder=&width=120&height=30&wmode=opaque&method=POST&queueSizeLimit=999&simUploadLimit=1&fileDesc=Video Files&fileExt=*.wmv;*.avi;*.divx;*.3gp;*.mov;*.mpeg;*.mpg;*.xvid;*.flv;*.asf;*.rm;*.dat;*.mp4;*.jpg&multi=true&auto=true&fileDataName=Filedata&queueID=fileUploadQueue" name="flashvars"></object> Is there a way to work around this? Edited May 26, 2012 by raptortrex Quote Link to post Share on other sites
a2mateit 395 Posted May 26, 2012 Report Share Posted May 26, 2012 For now the only work around I see is a prompt to select the file, then automate the rest... Not a very good solution, but that is probably the only way you can semi-automate this for now. Quote Link to post Share on other sites
Pete 121 Posted May 27, 2012 Report Share Posted May 27, 2012 If this is a signal threaded bot I would have a look at ubot version 3.x Theres a command to set the active window (in a thread)This is case sensitive command These should give you some idea of how it worked, all you need to add is the file name http://ubotstudio.com/forum/index.php?/topic/5407-cant-click-pop-up-dialogue-button-in-wordpress/ http://support.ubotstudio.com/index.php?/Knowledgebase/Article/View/63/6/ubot-studio-the-ui-elements-and-the-flow-commands Quote Link to post Share on other sites
jamesfar 15 Posted March 18, 2014 Report Share Posted March 18, 2014 so we still can not automate this uploadify button ?? i got the same problem today Quote Link to post Share on other sites
UBotDev 276 Posted March 18, 2014 Report Share Posted March 18, 2014 It could be doable but maybe not simple. You need to manually post data to server similar to how JavaScript does on real upload (since there is no example I'll use one from uploadify page http://www.uploadify.com/demos/ ): <script type="text/javascript"> $(function() { $("#file_upload_1").uploadify({ height : 30, swf : '/uploadify/uploadify.swf', uploader : '/uploadify/uploadify.php', width : 120 }); }); </script> As you can see the data gets posted against uploadify.php, so you need to sniff out that request and send similar request from UBot (POST request). You should know that once you do that file gets uploaded to a temporary folder and some data gets sent back from there server; I use Uploadify on one page and after uploading file I store file name into a hidden field, and I only move the file once the form is submitted, so you may need to properly populate inputs with server response and then submit the form (in case upload site in question does the same). Hope that helps you to get on the right track... Quote Link to post Share on other sites
jamesfar 15 Posted March 19, 2014 Report Share Posted March 19, 2014 It could be doable but maybe not simple. You need to manually post data to server similar to how JavaScript does on real upload (since there is no example I'll use one from uploadify page http://www.uploadify.com/demos/ ): <script type="text/javascript"> $(function() { $("#file_upload_1").uploadify({ height : 30, swf : '/uploadify/uploadify.swf', uploader : '/uploadify/uploadify.php', width : 120 }); }); </script> As you can see the data gets posted against uploadify.php, so you need to sniff out that request and send similar request from UBot (POST request). You should know that once you do that file gets uploaded to a temporary folder and some data gets sent back from there server; I use Uploadify on one page and after uploading file I store file name into a hidden field, and I only move the file once the form is submitted, so you may need to properly populate inputs with server response and then submit the form (in case upload site in question does the same). Hope that helps you to get on the right track... I have try to sniff it but the parameters can not be found on the page nor referrer page like uploadify.php?preventcache=xxxx this xxx thing can not be empty either please help Quote Link to post Share on other sites
the_way 52 Posted March 25, 2014 Report Share Posted March 25, 2014 tried the mobile user agent for this? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.