LPology / Simple-Ajax-Uploader

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

Closed jonny77 closed 8 years ago

jonny77 commented 9 years ago

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?

DanielFris commented 9 years ago

Perhaps - Your url: should be leading to a server side handler file ( not an upload directory ).