Photo Upload
2016-08-23
0 0 0
no vote
Other
Earn points
This class can validate and resize an uploaded image file.
It takes an array entry from the $_FILES array for a given uploaded file and checks if it has one of the allowed file name extensions, checks if it as one of the allowed MIME types, and checks if the file size does not exceed the limit size.
Valid picture images may be moved to a given directory with the original name or a given new name.
The class may also rescale the image to fit a given width and height preserving the original picture proportions.
The class may also save the picture in JPEG format with a given compression level.
The class throws exceptions for any validation or processing errors.
It takes an array entry from the $_FILES array for a given uploaded file and checks if it has one of the allowed file name extensions, checks if it as one of the allowed MIME types, and checks if the file size does not exceed the limit size.
Valid picture images may be moved to a given directory with the original name or a given new name.
The class may also rescale the image to fit a given width and height preserving the original picture proportions.
The class may also save the picture in JPEG format with a given compression level.
The class throws exceptions for any validation or processing errors.
php
Related Source Codes
CRMEB open source mall system (including h5 offici
0
0
no vote
PHP source code of CRMEB multi port and multi lang
0
0
no vote
ALLLIGHT music player, adaptive to all mobile phon
0
0
no vote
DSMALL multi-merchant mall system
0
0
no vote
WeChat H5 payment source code
0
0
no vote
No comment