class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
How to customize the code, in order to achieve these results:
Conditions: -file_type=only JPG files are allowed for upload -file_number=maximum 3 files are allowed for upload (I'll set this on html-form, by adding just 3 input fields,ain't that?) -file_size=maximum 300 KB allowed for each file -file_image_width=maximum 640 px allowed
if above conditions not respected than... write some alert text and do some actions(???):
-file_type=must be JPG -file_size=must be maximum 300 KB -file_image_width=must be maximum 640 px
if all conditions respected than... upload these files to /my server/folder and save themReply
Conditions:
-file_type=only JPG files are allowed for upload
-file_number=maximum 3 files are allowed for upload
(I'll set this on html-form, by adding just 3 input fields,ain't that?)
-file_size=maximum 300 KB allowed for each file
-file_image_width=maximum 640 px allowed
if above conditions not respected than...
write some alert text and do some actions(???):
-file_type=must be JPG
-file_size=must be maximum 300 KB
-file_image_width=must be maximum 640 px
if all conditions respected than...
upload these files to /my server/folder
and save them