Thread

Get URL for file from CP (EE3)

August 08, 2017 8:45pm

Subscribe [1]
  • #1 / Aug 08, 2017 8:45pm

    Angie Herrera's avatar

    Angie Herrera

    338 posts

    In EE2, files had links that either opened up a modal with a preview, or opened the file some other way. Whatever the case, you could grab the full URL of the file. Screenshot: http://d.pr/i/CmRqSO

    In EE3, that doesn’t seem to be the case any longer. Is there a way to get a file’s URL from the CP?

    It’s a bit of a strange question but it’s something a client is asking about and I need to give them an answer soon.

    Angie

  • #2 / Aug 08, 2017 9:09pm

    James Mathias's avatar

    James Mathias

    173 posts

    Hi,

    The URL of a file in the file manager is always going to be the Upload directory value + file name. So if they know the Upload directory value, and the file name, they can get the URL of that file for the frontend. In the CP for version 3, you can preview an image file by clicking the eye icon in the manage column. Non image files can’t be previewed in the CP.

ExpressionEngine News

#eecms, #events, #releases