View Single Post
Old August 15th, 2006, 06:44 AM   #13 (permalink)
daxter
Member
Verified Customer
 
Join Date: Jul 2006
Posts: 100
Quote:
Originally Posted by Chuck S View Post
A typical large image is anysize depending on you settings as this can easily be a non compresed touched image if your supersize setting is quite large.
Sorry for the confusion, I meant to say that 100k is typical in our setup. (800pix, 70 quality)
And these files are MUCH larger than that, up tp 3MB.

Quote:
Originally Posted by Chuck S View Post
You might want to refresh the cache on your ftp etc as in my testing if I delete an ad all images are deleted both the main thumbs and large are you talking about bigimage2 3 4 5 6?
redownload the build and upload adm-product.php
Thanks, uploading latest adm-product.php fixed the problem, all images are now removed if a user delete his ad.

Back to these large, orphaned files. I've had a suspicion that they might be results of failed/aborted uploads.
Which I got confirmed by testing today.

I places an ad with 3 images at around 900kb.
After a while the upload failed with:
Fatal error: Maximum execution time of 30 seconds exceeded in /public_html/p/image-inc.php on line 138.
(This is on our test server, the real server doesn't have any execution time limit. But still things can go wrong..)

The ad was visible, but with no images. And the image folders contained whats shown on the attachment.
Deleting the ad didnt delete any of the image files.

So obviously failed/aborted uploads leads to orphaned images that currently can only be removed manually.
As said, I really think a cleanup utility is necessary....
Attached Images
File Type: gif Image1.gif (27.1 KB, 10 views)
daxter is offline   Reply With Quote