【问题标题】:Basics to create a uploader service Software创建上传服务软件的基础知识
【发布时间】:2014-03-06 17:59:36
【问题描述】:

我正在使用一个名为 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>

谢谢你:)

【问题讨论】:

    标签: html uploader


    【解决方案1】:

    一种选择是为phantomjs 浏览器创建一个小脚本,通过 selenium 或其他绑定。该脚本可以为您登录并上传您想要的任何文件。有关详细信息,请参阅教程或在此处再次询问是否遇到困难。如果您决定使用ghostdirver(phantomjs 的 webdriver 版本),则有许多编程语言的绑定。

    附:我希望您在将备份上传到云端之前对其进行严格加密!

    【讨论】:

    • 谢谢,我正在考虑用 java 来做,比如 jdownloader。可以选择在未来分享该计划。
    • 不客气。如前所述,如果您遇到困难,请在此处再次询问有关该技术的具体问题。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-09-03
    • 2018-12-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多