Javascript file upload plugin with progress bar support. Works in all major browsers, including IE7+, Chrome, Firefox, Safari, and Opera. No dependencies - use it with or without jQuery.
995
stars
267
forks
source link
something went wrong when i tried to upload some files #99
when i use the sub code:
var uploader = new ss.SimpleUpload({
button: 'uploadBtn', // HTML element used as upload button
url: '/api/upload/image', // URL of server-side upload handler
name: 'image', // Parameter name of the uploaded file
data:{token:'<?php echo $upload_token?>'},
method:'post'
});
i got nothing with:
print_r($_FILES);
is there anything wrong?
when i use the sub code: var uploader = new ss.SimpleUpload({ button: 'uploadBtn', // HTML element used as upload button url: '/api/upload/image', // URL of server-side upload handler name: 'image', // Parameter name of the uploaded file data:{token:'<?php echo $upload_token?>'}, method:'post' }); i got nothing with: print_r($_FILES); is there anything wrong?