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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.