Support Forum

Renaming images

LI lisalew
lisalew
Member

The only complaint I am getting is from VERY frustrated users who try to upload their images over and over (after they have resized them to fit the requirements, for instance) and then it says “Image already exists.”  You would think people would know to just re-name the image themselves, but they don’t. 

 

It would be AWESOME if you could allow them to upload images with the same name some how.  At the very least, could you modify the error message to ask them to try renaming the image?

13 Answers

New Answer

MP Mr Papa
Mr Papa
Member

its something being considered as I said last time… but really not as simple as it sounds…. still on the list for consideration…

not really sure why they keep uploading the same name… and its only within a given month…

LI lisalew
lisalew
Member

Sorry to harp on it.  They keep uploading the same-named image because they originally try to upload an image that is too large, and then they resize it but don’t know that they need to rename it.  Where would I go to change the error message?

MP Mr Papa
Mr Papa
Member

in the plugins folder… look for the the plupload plugin and then library/sp-plupload-upload.php

but I am confused by whats happening… when I upload an image too large, its not left on the server… in fact, it hasnt even been copied over to the image upload storage location at the time the size check is made…

are you sure its an image too large size error message?

YS Yellow Swordfish
Yellow Swordfish
Member

I can understand this happening Steve. For example I have used screen capture programs before that will dump a file named image01.jpg in a designated folder for example. If you remove that file then the next capture will re-use the file name 

MP Mr Papa
Mr Papa
Member

oh, I definitely understand how it could, but the statement was with the image size too big error… in which case the image isnt in the storage folder yet…

YS Yellow Swordfish
Yellow Swordfish
Member

Mr Papa said

oh, I definitely understand how it could, but the statement was with the image size too big error… in which case the image isnt in the storage folder yet…

No it wasn’t. It was stated as ‘image already exists’ error.

MP Mr Papa
Mr Papa
Member

post #3…  I asked why does it exist… answer was it was rejected for size, so already existed…

YS Yellow Swordfish
Yellow Swordfish
Member

Mr Papa said

post #3…  I asked why does it exist… answer was it was rejected for size, so already existed…

well that is not the real issue. But it it were then that begs the question why does the filename exist if it was rejected due to size?

MP Mr Papa
Mr Papa
Member

yes, that was my question… are we really talking about the image being rejected by size – trying to confirm… cause I dont see how that would happen since its not in the storage location yet…

have been looking to see if can change the name but problematic passing the new name back through multiple js/json and libraries…

MP Mr Papa
Mr Papa
Member

committed a change to try to handle unique names…  needs testing…

LI lisalew
lisalew
Member

Mr Papa said

yes, that was my question… are we really talking about the image being rejected by size – trying to confirm… cause I dont see how that would happen since its not in the storage location yet…

have been looking to see if can change the name but problematic passing the new name back through multiple js/json and libraries…

 

I apologize I didn’t chime in on this earlier, I’ve been sick – our server times out when trying to upload large files, and I think it’s when this happens that the “image already exists” error happens (when they try to upload again).  I’ve increased memory but it is still timing out on occasion.  I will test the fix when I get out of meetings this afternoon.  Thanks again.