Tech Tangents:Sandbox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<html> | <html> | ||
<script> | <script> | ||
function upload_file() | function upload_file() | ||
{ | { | ||
Line 20: | Line 16: | ||
api.upload(fileInput.files[0], param) | api.upload(fileInput.files[0], param) | ||
.done(function (data) { | .done(function (data) { | ||
console.log(data.upload.filename + " has sucessfully uploaded."); | console.log(data.upload.filename + " has sucessfully uploaded."); | ||
}) | }) | ||
.fail(function (data) { | .fail(function (data) { |
Revision as of 18:22, 7 September 2024