[Pat Cloud] 401 error calling form API via jquery

Source: Internet
Author: User

The source code is as follows:

      
  
                 

The above method prompts "401 Unauthorized sign Error", but through $ (' form '). Submit () is returned with 200 success. As below, please Daniel to help solve, greatly appreciated!



Reply content:

The source code is as follows:

      
  
                 

The above method prompts "401 Unauthorized sign Error", but through $ (' form '). Submit () is returned with 200 success. As below, please Daniel to help solve, greatly appreciated!



The 401 error is the signature issue:
401:unauthorized Access Not authorized
401:sign Error Signature Errors (operator and password, or bad signature format)
Sign Error:
Check that the signature format is consistent with that in the interface document.
Unauthorized:
Error checking space name, operator, password and other information is filled in correctly, upload path whether there is root "/" start.
You can refer to the above error message.

This error details the Upyun API http://www.upyun.com/intro/api-errors.php

Another post that uses jquery cannot upload files,

$('input[name=file]').val()

Gets only the local path of the uploaded file.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.