Quantcast
Channel: SharePoint Legacy Versions - Using SharePoint Designer, InfoPath and Other Customizations Forum
Viewing all articles
Browse latest Browse all 2319

Picture Library : upload image with same name overwrite the image in thumbmail or WebVersion view but not the actual image link points to the old image

$
0
0

Hello,

I am facing a wired issue with Picture Libraries in SharePoint.

We created a custom field and added it to UserInfo list, the column based on custom field lets user upload their personal images to a Picture Library with the name <User ID>.<Image Extension> e.g. 1.jpg where UserID is internal Listitem ID of the UserInfo list and set its URL to the field value which we use to display the image on our custom user profile and some other WebParts.

If the user uploads a different image, it will overwrite the existing one it keeping the same name.

The field worked perfectly with sites using widows Based authentication, but as we move the field to sites with form based authentication we find that the field is able to upload the image properly first time but on each successive upload, although a new image gets uploaded with the name userid.imagextension and is shown in the allitems.aspx page in the thumbnail view and in the picture preview on the dispform.aspx page, but the link next to the name field and the image shown on clicking the preview points to the old image.

To put it other way

https://<Web URL>/Picture%20Library/_w/Upload_jpg.jpg
https://<Web Url>/Picture%20Library/_t/Upload_jpg.jpg

Would show the updated image

but the actual URL
https://<Web Url>/Picture%20Library/Upload.jpg 
points to the old image

what’s even more strange is that even after deleting the image the url still shows the old image at
https://<Web Url>/Picture%20Library/Upload.jpg 

I confirmed the same by actually repeating the same exercise on a picture Library in the User Interface

  • Uploading an image say upload.jpeg in the picture library using SharePoint interface.
  • Then uploading a different jpeg image keeping the same name upload.jpeg again in the picture library.
  • In allitems.aspx thumbnail view and on dispform.aspx page preview filed image now show the newly uploaded image but when you click the preview image or click the link in the name field value it takes you back to the old image.

I have seen this issue on environment where we have enabled form based authentication and the issue is not seen on another server where we have wss with windows based authentication.


Has anyone noticed such behavior and is there any workaround to that!


Thanks & Regards Saurabh Rustagi

Viewing all articles
Browse latest Browse all 2319

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>