Jump to content

increase

Members
  • Posts

    15
  • Joined

  • Last visited

Community Answers

  1. increase's post in Php rename function cannot rename file was marked as the answer   
    I have it! Instead of trying to change the filename back to the original filename after the processing, there was an option buried in the form data javascript, that cariies the filname into the upload.php file
    FilesAdded: function(up, files) { plupload.each(files, function(file) { document.getElementById('filelist').innerHTML += '<div id="' + file.id + '">' + file.name + ' (' + plupload.formatSize(file.size) + ') <b></b></div>'; }); }, FilesAdded: function(up, files) { plupload.each(files, function(file) { document.getElementById('filelist').innerHTML += '<div id="' + file.id + '">' + file.name + ' (' + plupload.formatSize(file.size) + ') <b></b></div>'; up.setOption('url', 'upload.php?name=' + file.name); }); }, By adding the line up.setOption('url', 'upload.php?name=' + file.name); to the function it picks up the original filename and processes that instead of the file code name. Works perfectly, thanks for your help
×
×
  • 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.