trying to upload pictures to a users folder /uploads/$uid i think i have the variable syntax right maybe the syntax in file path is incorrect /uploads/user/
(function($){
$.simpleuploader = {version: '0.1'};
$.fn.simpleuploader = function(options){
// the container to inject the form into
var $this = $(this);
var user = '<?php echo $uid; ?>'; //is users id from session
// set defults
var defaults = {
prefix: 'simpleuploader-',
latency: 500,
reuse: true,
when: 'onchange',
submitText: 'Submit',
disabledOpacity: .3,
settings: {
fullPath: 'http://www.mysite.com/image_upload/uploads/user/',
relPath: '../uploads/user/',
},
settings.relPath
. Also, I would usevar user = <?php echo json_encode($uid); ?>; //is users id from session
instead, just in case$uid
contains some complex symbols.