gavin.sibley Posted March 20, 2012 Share Posted March 20, 2012 hello all, i have a photo uploader that clients use. i want this to be able to put clients photos in there own folder within a specified path. $(function() { $('#custom_file_upload').uploadify({ 'uploader' : '/uploadify.swf', 'script' : 'uploadify.php?user=<?php echo("$logged[ip]"); ?>', 'cancelImg' : '/cancel.png', 'folder' : '/wuploads/{$logged('email')}', 'multi' : true, 'auto' : true, 'fileExt' : '*.ZIP;*.zip;*.rar', 'queueID' : 'custom-queue', 'queueSizeLimit' : 1000, 'simUploadLimit' : 1000, 'removeCompleted': true, 'onSelectOnce' : function(event,data) { $('#status-message').text(data.filesSelected + ' files have been added to the queue.'); }, 'onAllComplete' : function(event,data) { $('#status-message').text(data.filesUploaded + ' files uploaded, ' + data.errors + ' errors.'); } }); }); i have tried the code above with 'folder' : '/wuploads/{$logged('email')}', but this doesnt seem to work, im new to php and tried a few different combinations but it wont budge! thanks, gavin Quote Link to comment https://forums.phpfreaks.com/topic/259352-custom-photo-uploader/ Share on other sites More sharing options...
dragon_sa Posted March 20, 2012 Share Posted March 20, 2012 I like to use this for client uploads http://www.plupload.com/ Quote Link to comment https://forums.phpfreaks.com/topic/259352-custom-photo-uploader/#findComment-1329527 Share on other sites More sharing options...
gavin.sibley Posted March 20, 2012 Author Share Posted March 20, 2012 thanks for your reply, i already have an uploader which works perfectly, all i want to do is edit the folder path it saves the uploads in so that each individual clients photos go to their own seperate folder (this folder is in the /wuploads/ folder and is named their email address) thanks Quote Link to comment https://forums.phpfreaks.com/topic/259352-custom-photo-uploader/#findComment-1329528 Share on other sites More sharing options...
dragon_sa Posted March 21, 2012 Share Posted March 21, 2012 I am pretty sure $logged('email') This should be $logged['email'] square brackets echo the result of that somewhere to make sure it is giving you the value you want Quote Link to comment https://forums.phpfreaks.com/topic/259352-custom-photo-uploader/#findComment-1329695 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.