Im using http://valums.com/ajax-upload/ on my site. I would like to know if theres a way to get the upload path from a textbox or similar.
Index.php:
<script>
function createUploader(){
var uploader = new qq.FileUploader({
// pass the dom node (ex. $(selector)[0] for jQuery users)
element: document.getElementById('file-uploader'),
// path to server-side upload script. In our case server/php.php
action: 'server/php.php'
});
}
window.onload = createUploader;
php.php:
...
$result = $uploader->handleUpload('../../uploads/');
...
Any help is much appreciated. Thanks
Easily, like this:
jQuery:
PHP: