HomeHome Product Discus... Product Discus...SmithCartSmithCartThumbnail not overwriting...Thumbnail not overwriting...
Previous
 
Next
New Post
11/4/2010 8:14 PM
 

When uploading an image, in this case the main product shot, we cannot get the thumbnail to overwrite... but the main image does. So xyz.jpg would overwrite itself as the main box image, but the thumbnail version does not overwrite. The only thing to do is to upload the image with a different filename. But then, this will add more images to the server that need to be there.

Is there anyway to get the thumbnail versions of an upload to overwrite? I checked permissions on the folders and everything and it was all OK.

Thanks,

Steve

 
New Post
11/4/2010 8:22 PM
 

The difference is the regular size image is just a staight upload using the asp file upload control and the thumbnail is dynamically resized in memory and saved using c# code. We are looking at some different options for the thumbnail generation and we will add the issue you raised to the list here is a thread with the code that does the thumbnail resizing and save http://www.smith-consulting.com/forum... if anyone has any good links that does thumb resizing please post.

Dave


At your service,
Dave Smith
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
7/15/2011 2:30 PM
 

Has this ever been addressed?  Seems all that is required to overwrite, based on code in this post (http://www.smith-consulting.com/forum...), is to change the FileStream's FileMode property to Create rather than CreateNew.  If this isn't the default behavior then it would be great to allow the user to choose whether to overwrite when managing products or allow an admin to set it by making it a cart setting.

http://msdn.microsoft.com/en-us/libra...

 
New Post
7/15/2011 3:00 PM
 
Hi Ted,
Thanks for identifying the programming fix to allow overwriting thumbnails with the same name. I will send this into programming and postback when a hotfix is ready.

Thanks again!

Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
7/23/2011 5:58 PM
 
This change that allows uploading product images with the same name has been implemented and will be released this week in cart v4.45. Thanks for reporting it!

At your service,
Dave Smith
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartThumbnail not overwriting...Thumbnail not overwriting...