Pure PHP Upload Add-On Pack Support Product Page

Answered

No rename image with PPU 2.1.12 and Rename Uploaded Files Addon 1.0.9

Asked 10 Jan 2013 08:34:09
1
has this question
10 Jan 2013 08:34:09 marco bobbi posted:
Hi,
because the combination of Pure PHP Upload 2.1.12 and Rename Uploaded Files Addon 1.0.9 don't rename my image????

This is my code:
// Pure PHP Upload 2.1.12
$ppu = new pureFileUpload();
$ppu->path = "../../_upload_/categorie";
$ppu->extensions = "GIF,JPG,JPEG,BMP,PNG";
$ppu->formName = "validate_form";
$ppu->storeType = "file";
$ppu->sizeLimit = "";
$ppu->nameConflict = "uniq";
$ppu->nameToLower = true;
$ppu->requireUpload = false;
$ppu->minWidth = "";
$ppu->minHeight = "";
$ppu->maxWidth = "";
$ppu->maxHeight = "";
$ppu->saveWidth = "";
$ppu->saveHeight = "";
$ppu->timeout = "600";
$ppu->progressBar = "";
$ppu->progressWidth = "";
$ppu->progressHeight = "";
$ppu->redirectURL = "";
$ppu->checkVersion("2.1.12");
$ppu->doUpload();

// Rename Uploaded Files Addon 1.0.9
if (isset($_GET['GP_upload'])) {
  $ruf = new renameUploadedFiles($ppu);
  $ruf->renameMask = "myFile_##name##.##ext##";
  $ruf->checkVersion("1.0.9");
  $ruf->doRename();
}


thanks a lot

Replies

Replied 10 Jan 2013 12:41:10
10 Jan 2013 12:41:10 Vulcho Vulev replied:
Hello Marco.

Did you created form before placing the both extension?
Currently i don't see php code applied to form.

Please take a look at the following tutorial:
Using Rename Uploaded Files Server Behavior


Regards:Vulcho.

Reply to this topic