Process problems

See all posts See thread Reply

Re: Process problems new!
by colin, 16 years, 10 months ago
I still don't really understand, but here is a suggestion (from the docs!) that may help you. You can read the following values before calling Process():

Values that can be read before calling process()
* file_src_name: Source file name
* file_src_name_body: Source file name body
* file_src_name_ext: Source file extension
* file_src_pathname: Source file complete path and name
* file_src_mime: Source file mime type
* file_src_size: Source file size in bytes
* file_src_error: Upload error code
* file_is_image: Boolean flag, true if the file is a supported image type

If the file is a supported image type (and open_basedir restrictions allow it)
* image_src_x: Source file width in pixels
* image_src_y: Source file height in pixels
* image_src_pixels: Source file number of pixels
* image_src_type: Source file type (png, jpg, gif or bmp)
* image_src_bits: Source file color depth

Also, you can call process() twice on the same image (uploaded or local file) without having to instantiate the class twice.Reply