? upload_refresh_filesize.patch Index: upload.module =================================================================== RCS file: /cvs/drupal/drupal/modules/upload/upload.module,v retrieving revision 1.148.2.3 diff -u -p -r1.148.2.3 upload.module --- upload.module 7 Jan 2008 01:00:23 -0000 1.148.2.3 +++ upload.module 30 Apr 2008 12:41:07 -0000 @@ -864,6 +864,7 @@ function _upload_image($file) { if ($width && $height) { $result = image_scale($file->filepath, $file->filepath, $width, $height); if ($result) { + clearstatcache(); $file->filesize = filesize($file->filepath); drupal_set_message(t('The image was resized to fit within the maximum allowed resolution of %resolution pixels.', array('%resolution' => variable_get('upload_max_resolution', 0)))); }