2014-02-09 44 views
0

我正在使用名爲wcm7.com的網頁上傳我的電腦備份文件,但是我正在考慮爲我的電腦創建一個軟件上傳器,以使其更容易。創建上傳器服務的基礎知識軟件

問題是,我需要知道什麼才能使我的軟件與網站通信,並直接從程序中上傳/下載,而無需每次訪問網站?

我投資的代碼,並使用此代碼上傳,也許它可以幫助:

<div id="upload" class="button" original-title="Upload max. 5 GB"> 
      <form data-upload-id="1" id="data-upload-form" class="file_upload_form" action="http://space.wcm7.com/index.php/apps/files/ajax/upload.php" method="post" enctype="multipart/form-data" target="file_upload_target_1"> 
       <input type="hidden" name="MAX_FILE_SIZE" id="max_upload" value="1235257" original-title=""> 
       <!-- Send the requesttoken, this is needed for older IE versions 
        because they don't send the CSRF token via HTTP header in this case --> 
       <input type="hidden" name="requesttoken" value="3c3c3c4fad5gh" id="requesttoken" original-title=""> 
       <input type="hidden" class="max_human_file_size" value="(max 5 GB)" original-title=""> 
       <input type="hidden" name="dir" value="/" id="dir" original-title=""> 
       <input type="file" id="file_upload_start" name="files[]" original-title="" multiple="multiple"> 
       <a href="http://space.wcm7.com/#" class="svg"></a> 
      </form> 
     </div> 

謝謝:)

回答

0

一種選擇是爲phantomjs瀏覽器創建一個腳本,無論是通過硒或其他結合。該腳本可以登錄你並上傳任何你想要的文件。如果遇到困難,請參閱教程以瞭解具體情況或再次詢問。如果您決定使用ghostdirver(phantomjs的網絡驅動程序版本),則可以使用許多編程語言的綁定。

P.S.我希望你在將它們上傳到雲中之前強烈加密你的備份!

+0

謝謝你,我正在考慮用java下載jdownloader。可以選擇未來分享該計劃。 – Toni

+0

不用客氣。如上所述,如果您遇到困難,請在此再次詢問關於該技術的具體問題。 – luksch