| Anonymous | Login | Signup for a new account | 2013.05.18 14:44 CEST |
| Main | My View | View Issues | Change Log | Roadmap | Docs |
| Viewing Issue Advanced Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||
| 0000126 | [Piwigo] upload | minor | always | 2005.07.10 15:41 | 2008.07.03 22:04 | ||
| Reporter | ChD | View Status | public | ||||
| Assigned To | |||||||
| Priority | normal | Resolution | fixed | Platform | |||
| Status | closed | OS | |||||
| Projection | none | OS Version | |||||
| ETA | none | Fixed in Version | 1.7.1 | Product Version | 1.4.1 | ||
| Target Version | Product Build | ||||||
| Summary | 0000126: unable to upload thumbnail if thumbnail directory don't exist | ||||||
| Description | For a new category just added, there is no thumbnail directory. When uploading the first picture, if i choose to upload the thumbnail too, it fails. | ||||||
| Steps To Reproduce | |||||||
| Additional Information |
Here is a possible correction to apply in upload.php : @@ -234,6 +235,12 @@ $file = substr ( $row['file'], 0, strrpos ( $row['file'], ".") ); $extension = get_extension( $_FILES['picture']['name'] ); $path = $page['cat_dir'].'thumbnail/'; + // Verify the existence of $path (thumbnail directory) + if (!is_dir($path)) + { + umask(0000); + mkdir($path, 0777); + } $path.= $conf['prefix_thumbnail'].$file.'.'.$extension; $result = validate_upload( $path, $conf['upload_maxfilesize'], $conf['upload_maxwidth_thumbnail'], |
||||||
| Tags | No tags attached. | ||||||
| browser | any | ||||||
| Database engine and version | |||||||
| PHP version | 4.3.10-15 | ||||||
| Web server | Apache 2.0.54 | ||||||
| Attached Files | |||||||
|
|
|||||||
Notes |
|
|
(0002255) mathiasm (manager) 2008.07.03 22:04 |
Fixed at least in 1.7.1 and Trunk as of 2008.07.03 in [Subversion] r2418 |
| Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group Contact |