View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001094 | OXID eShop (all versions) | 2. ----- eShop backend (admin) ----- | public | 2009-07-13 13:37 | 2009-08-21 11:38 |
Reporter | marek_fiser | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.1.3 revision 19918 | ||||
Fixed in Version | 4.1.6 revision 22740 | ||||
Summary | 0001094: not resize images after upload | ||||
Description | on hostings with open_basedir restriction may be system tmp dir unavailable for resize function in oxutilspic.php and then uploaded image was copied unchanged. | ||||
Tags | No tags attached. | ||||
Theme | |||||
Browser | All | ||||
PHP Version | 5.2.6 | ||||
Database Version | 5.0.33 | ||||
|
as all knows you must use move_uploaded_file first |
|
@developers: add additional check to this case: - if open_basedir is enabled, then implement suggested solution (with move_uploaded_file); - if open_basedir is disabled, then let it work as currently implemented. |
|
a bit changed image upload and resize flow to make it working on any case: 1. uploaded image is moved to "tmp/" folder; 2. image is resized or processed in any other way; 3. image is copied to final location; 4. image source stored to "tmp/" filder is deleted. |