Jump to content

Custom photo uploader


gavin.sibley

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.