Damian
|
| Posted: 09/19/2004, 11:21 PM |
|
Gday,
Have written a PHP file to manipluate an image AFTER upload. It resizes the
file to a MAX HEIGHT/WIDTH and JPG conpression to 65%.
I am trying to call this file and pass the newly uploaded image file name to
it. I have inserted the following Custom Code to the AfterProcessFile on the
FileUpload Control on my page:
global $marina;
$oldphoto = CCGetParam("photo", "");
$output = implode("",
file("http://www.nexthost.com.au/~crewaust/custom.php?size=700&newphoto=".$o
ldphoto));
photo i sthe name of the File Upload control.
I dont think that the photo value is being passed to the custom.php file (as
the variable $oldphoto).
I want to retrieve the uploaded file name for the Photo File Upload control.
regards
Damian
|
|
|
 |
Dave Heller
|
| Posted: 09/20/2004, 10:40 AM |
|
We use three lines in PHP to tie to our external perl interface to
ImageMagick.
// get folder and file name (name has date/time prepended )
$DestinationFile = $Hosts_Profile->FileUpload1->FileFolder .
$Hosts_Profile->FileUpload1->Value ;
// handle the case of file names with spaces or other problem characters
$DestinationFile = urlencode( $DestinationFile ) ;
// call program with file and parms
system("./img_size.pl image=$DestinationFile height=100 width=120 ");
"Damian" <codecharge@sydneyit.no.com.junk> wrote in message
news:cilssg$nna$1@news.codecharge.com...
> Gday,
>
> Have written a PHP file to manipluate an image AFTER upload. It resizes
> the
> file to a MAX HEIGHT/WIDTH and JPG conpression to 65%.
>
> I am trying to call this file and pass the newly uploaded image file name
> to
> it. I have inserted the following Custom Code to the AfterProcessFile on
> the
> FileUpload Control on my page:
>
> global $marina;
>
> $oldphoto = CCGetParam("photo", "");
> $output = implode("",
> file("http://www.nexthost.com.au/~crewaust/custom.php?size=700&newphoto=".$o
> ldphoto));
>
> photo i sthe name of the File Upload control.
>
> I dont think that the photo value is being passed to the custom.php file
> (as
> the variable $oldphoto).
>
> I want to retrieve the uploaded file name for the Photo File Upload
> control.
>
> regards
> Damian
>
>
|
|
|
 |
beshoo
Posts: 68
|
| Posted: 09/20/2004, 3:00 PM |
|
http://forums.codecharge.com/posts.php?post_id=49498&s_keyword=
_________________
beshoo Love PHP and CC 4.2 |
 |
 |
|