Saturday, 15 February 2014

javascript - jQuery-File-Upload Change dir for upload and list of image -



javascript - jQuery-File-Upload Change dir for upload and list of image -

i'm trying alter upload path , image list path in jquery file upload.... i'm using jquery file upload via angularjs....and have till now....

this url set in app.js

var url = 'server/php/index.php?myfolder=/content/media/gallery/1/';

this callback on jqueryfileupload.js

submit: function (e, data) { var folder = '/content/media/gallery/1/'; data.formdata = {myfolder: folder}; },

and php

error_reporting(e_all | e_strict); require('uploadhandler.php'); $myfolder = $_request['myfolder']; $uploadfolder = '../../..'. $myfolder; $uploadurl = 'myurl/mainfolder'. $myfolder; $options = array( 'upload_dir' => $uploadfolder, 'upload_url' => $uploadurl ); $upload_handler = new uploadhandler($options);

i had seek alter path within uploadhandler.php it's still uploading file in file folder have ideas???

thank you...

javascript php jquery angularjs

No comments:

Post a Comment