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.
here is the log: system information - class version : 0.35dev - operating system : Darwin - PHP version : 5.6.30 - GD version : 2.1.0 - supported image types : png jpg gif bmp - open_basedir : no restriction - upload_max_filesize : 15M (15728640 bytes) - language : en_GB source is an uploaded file - upload OK - file name OK determining MIME type - Checking MIME type with Fileinfo PECL extension MAGIC path will not be used MIME type detected as text/plain; charset=us-ascii by Fileinfo PECL extension - MIME validated as text/plain source variables - You can use all these before calling process() file_src_name : M-Search-Icon.svg file_src_name_body : M-Search-Icon file_src_name_ext : svg file_src_pathname : /private/var/tmp/phpECyHvr file_src_mime : text/plain file_src_size : 471 (max= 15728640) file_src_error : 0 process file to ../../uploads/slides/kitchen/ - file size OK - script renamed as M-Search-Icon.svg.txt! - file mime OK : text/plain - file name safe format - destination variables file_dst_path : ../../uploads/slides/kitchen/ file_dst_name_body : M-Search-Icon.svg file_dst_name_ext : txt - checking for auto_rename - destination file details file_dst_name : M-Search-Icon.svg.txt file_dst_pathname : ../../uploads/slides/kitchen/M-Search-Icon.svg.txt - M-Search-Icon.svg.txt doesn't exist already - ../../uploads/slides/kitchen/ is not writeable. Attempting chmod: failed - error: Destination directory can't be made writeable. Can't carry on a process.Reply
system information
- class version : 0.35dev
- operating system : Darwin
- PHP version : 5.6.30
- GD version : 2.1.0
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- upload_max_filesize : 15M (15728640 bytes)
- language : en_GB
source is an uploaded file
- upload OK
- file name OK
determining MIME type
- Checking MIME type with Fileinfo PECL extension
MAGIC path will not be used
MIME type detected as text/plain; charset=us-ascii by Fileinfo PECL extension
- MIME validated as text/plain
source variables
- You can use all these before calling process()
file_src_name : M-Search-Icon.svg
file_src_name_body : M-Search-Icon
file_src_name_ext : svg
file_src_pathname : /private/var/tmp/phpECyHvr
file_src_mime : text/plain
file_src_size : 471 (max= 15728640)
file_src_error : 0
process file to ../../uploads/slides/kitchen/
- file size OK
- script renamed as M-Search-Icon.svg.txt!
- file mime OK : text/plain
- file name safe format
- destination variables
file_dst_path : ../../uploads/slides/kitchen/
file_dst_name_body : M-Search-Icon.svg
file_dst_name_ext : txt
- checking for auto_rename
- destination file details
file_dst_name : M-Search-Icon.svg.txt
file_dst_pathname : ../../uploads/slides/kitchen/M-Search-Icon.svg.txt
- M-Search-Icon.svg.txt doesn't exist already
- ../../uploads/slides/kitchen/ is not writeable. Attempting chmod: failed
- error: Destination directory can't be made writeable. Can't carry on a process.