Pure PHP Upload 2 Support Product Page

cannot rename files

Asked 09 Mar 2011 05:51:44
1
has this question
09 Mar 2011 05:51:44 phil vouers posted:
pure php2 file upload 2.1.12
addon pack 1.08
sip 2.0.8
dw8
what I need to do is add a storeID to an image name. I have a hidden field for storeID in my form (insert puts all in database ) For example say my storeID is 1141 I want my uploaded file to be renamed to 1141_somefile.jpg If I use the addon pack then my computer just hangs when I try to open the insert record page even if I leave it like the example. If I use the storeID with pure upload then it will add the storeID to the folder. but of course that messes with my path so I checked the box to save the path, but it doesn't save the path just the file name.
I'm at the point of returning for a refund because I am sure
I can find a resizer for a lot less. This is my second set of extensions and none have worked flawlessly yet. This is getting discouraging.[]

Replies

Replied 09 Mar 2011 10:55:14
09 Mar 2011 10:55:14 Miroslav Zografski replied:
Hello Phil,

Provide any error messages. Also provide your page code.


Regards,
Replied 09 Mar 2011 13:56:52
09 Mar 2011 13:56:52 Miroslav Zografski replied:
Hello Phill,

I cannot confirm your issue.
Could you please, provide information on your OS, Dw version, Server used ( WAMP, MAMP or remote PHP server).

Regards,
Replied 09 Mar 2011 13:57:00
09 Mar 2011 13:57:00 phil vouers replied:
<?php
// Smart Image Processor PHP 2.0.7
if (isset($_GET['GP_upload'])) {
$sipp2 = new cGraphicMediator("upload", $ppu, "";
$sipp2->setComponent("GD2";
$sipp2->setMatteColor("#FFFFFF";
$sipp2->resize(250, 250, true);
$sipp2->overwrite = false;
$sipp2->setMask("##path##thumb_##name##.jpg";
$sipp2->saveJPEG(80);
$sipp2->process();
}
?>
<?php
if (isset($editFormAction)) {
if (isset($_SERVER['QUERY_STRING'])) {
if (!eregi("GP_upload=true", $_SERVER['QUERY_STRING'])) {
$editFormAction .= "&GP_upload=true";
}
} else {
$editFormAction .= "?GP_upload=true";
}

// Pure PHP Upload 2.1.12
$ppu = new pureFileUpload();
$ppu->path = "../images/adams";
$ppu->extensions = "GIF,JPG,JPEG,BMP,PNG";
$ppu->formName = "form2";
$ppu->storeType = "file";
$ppu->sizeLimit = "2048";
$ppu->nameConflict = "over";
$ppu->nameToLower = false;
$ppu->requireUpload = true;
$ppu->minWidth = "";
$ppu->minHeight = "";
$ppu->maxWidth = "";
$ppu->maxHeight = "";
$ppu->saveWidth = "";
$ppu->saveHeight = "";
$ppu->timeout = "800";
$ppu->progressBar = "";
$ppu->progressWidth = "300";
$ppu->progressHeight = "100";
$ppu->redirectURL = "";
$ppu->checkVersion("2.1.12";
$ppu->doUpload();
?>

I left your example info in the create new field and it doesn't change the name and it won't resize the image with the box checked
Replied 09 Mar 2011 13:58:16
09 Mar 2011 13:58:16 phil vouers replied:
dw8 php 5 apache server

Reply to this topic