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.