cformsII Support Forum
Current User: Guest *Frequently Asked Questions*
Search 
Search Forums:


 




resize an image after upload

Add a New Topic Reply to Post
Post

damian - Guest

11:37 pm - October 22, 2008

1

It would be really awesome if you could tell cforms to resize an image after it is uploaded. I've been trying to figure tou how I could do that using the my-functions.php file but have not had any luck. Any thoughts?

Oliver - Admin

7:10 am - October 23, 2008

posts 3921

2

cforms is not meant to do that.

why not simply run a PHP batch job on your upload folder every day that does it for you?

or, if you want to get more complex you could

  • use the (non ajax) my-functions.php filter to access the variable  $_FILES
  • retrieve the TMP name
  • access the file in the TMP folder by its TMP name
  • do whatever you want with it
Reply to Post


Reply to Topic: resize an image after upload
PLEASE READ THE FAQs FIRST! THANK YOU.

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Topic Reply:

Save New PostSmileysOptions

Guest URL (required)

Math Required!
What is the sum of:
12 + 6
   

 
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell

Search