Jump to content
Sign in to follow this  

Automating an upload (to a website)

Recommended Posts


Hi all,

I've been using a service called Drop.io for some time now, and was wondering if it would be possible to automate the process of uploading files on my "drop".

A drop is, in this case, an online storage medium in the cloud where you can drop things like files and notes.

Here's an example of a drop I've made for this topic: http://drop.io/demo4autoit

I've never used AutoIt's online functions before, so any clues of where to start would greatly be appreciated.

Thanks :)

P.S: Like the new forum style, it's nice.

Share this post

Link to post
Share on other sites

I am not totally sure, but I believe it is possible to upload to a website. I think you have to use TCP Protocol. You probably connect to the server and send the information. Look at the source code for the site and replicate whatever the upload button on the website does.

[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post

Link to post
Share on other sites

Yes indeed I figured I should maybe check where the file goes, checking a simplified upload page's source at the moment.

Edit: I think this is the most relevant code I can find :-/



  <div id="containerViews">
    <div id="wrapperViews" class="clearfix">
        <div id="upload" class="centeredBox">
  <h2>Upload File</h2>
  <p>Use this HTML uploader to upload a single file to your drop</p>
  <form class="bucket-admin" action="http://assets.drop.io/upload?bucket=65d106e0-52d7-012c-7489-fdb601c2a0a5" method="post" enctype="multipart/form-data" id="upload_form" onsubmit="watchHTMLUpload(this.id,doneUploading)">
    <input type='hidden' name='bucket' value='65d106e0-52d7-012c-7489-fdb601c2a0a5' />
    <input type='hidden' name='checksum' value='f0a2575cf4753e3e2d887ee9a2d89fcbb71d1fa5' />
    <input type='hidden' name='results_in_text' value='true' />
    <input type='hidden' class="referer" name='referer' value='' /> 
    <div id="result" class="htmlUploadResultSuccess"></div>
    <div class="formContent">
      <fieldset class="v-align">
      <label for="file">File to Upload</label>
      <input id="file" name="file" type="file" />
      <span class='btnBorder ' style='margin-top:10px;margin-left:105px'><button type='submit' class='btn ' style='width:100px' >Upload</button></span>
    <a href="[url="view-source:http://drop.io/demo4autoit"]/demo4autoit[/url]" id="dropReturn" style="margin-top: 30px">Return to drop</a>

  function doneUploading(response) {
    if( response.result == "true" ) {
      $("result").className = "htmlUploadResultSuccess";
      $("result").innerHTML = "File Uploaded Successfully";
    } else {
      $("result").className = "htmlUploadResultFailure";
      $("result").innerHTML = "Upload Failed: " + response.message;
Edited by nf67

Share this post

Link to post
Share on other sites

Hi nf67,

Where you able to solve the problem. Can you please post the latest code so that I can use it in one of my project.

Thanks ;)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.