GeorgeS
Posts: 206
|
| Posted: 10/12/2004, 12:47 PM |
|
Hi,
we have Persits ASP upload, PDF & JPG components installed.
Our clients will be uploading high-res photos from 200kb to 1 mb in size and we'd like to make smaller copies of these pictures at the time of uploading for displaying on our web pages.
(Large files will be used for brochures & cards.)
I know how to do it in plain ASP but I can't figure out how to do the same in CCS wih its Upload component.
For now I know only how to upload the originl file.
In my Project's properties I selected "Persits Software" for File Upload Component.
Does it mean that CCS automatically will include somewhere AspUpload.inc file & things like: 'Set Upload = Server.CreateObject("Persits.Upload")' ?
What events of CCS's Upload component do I need to use for:
renaming file,
re-sizing it and
saving a smaller copy ?
i have tried renaming files in BeforeProcessFile event:
NewRecord1.FileUpload1.value = "newname_" & NewRecord1.FileUpload1.value
but it hasn't worked.
Any help will be appreciated!
Thank you.
_________________
GeorgeS |
 |
 |
|