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 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/ 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 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 Link to comment https://forums.phpfreaks.com/topic/259352-custom-photo-uploader/#findComment-1329695 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.