Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Danny dineen 12 posts 81 karma points
    1 week ago
    Danny dineen
    0

    I understand the correct way to reference media files so when media files are replaced no broken links will occur. This is fine for code that runs from an Umbraco MVC view. The issue I am facing is that our editors wish to upload media files and distribute the media link for use in other distribute content mediums that Umbraco does not control. When a media file in Umbraco is replaced the numerical folder is changed and that will break all distributed links to that media file outside of Umbraco.

    Is there a special way to handle replacing media files in Umbraco so that the URL will not change at all? For now we are using the URL tracker plug in and creating redirects for any updated and distributed media links; as a work around.

  • Jan Skovgaard 10938 posts 21806 karma points MVP 4x admin c-trib
    1 week ago
    Jan Skovgaard
    2

    Hi Danny

    If I understand the issue correctly then I think you will actually need to find the media item in the media section and click on "Remove file" and then upload the new file, which will replace the old one. The new file will of course also need to have the same file-name as the old file that is being removed has. That way the url should remain the same and the file will be uploaded into the same id named folder.

    But it's a bit of a tedious process if it's something that needs to be done for many files of course.

    /Jan

  • Danny dineen 12 posts 81 karma points
    6 days ago
    Danny dineen
    0

    Thank you for your answer.

    I wish there was a way we could move a file into a physical media/{id} folder to recover the path of files when the correct procedure is not followed; from within Umbraco.

Please Sign in or register to post replies

Write your reply to:

Draft