ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Uploaded file path

January 14, 2011 11:59am

Subscribe [2]
  • #1 / Jan 14, 2011 11:59am

    Hi,

    I have a custom field that is used to upload MP3 files to a directory.
    I have verified that the files are uploaded into the correct place but when I use the field name in my template to output the path to the file the upload directory part is missing and the url points to a file that is in the root directory of the site.

    For example:

    http://www.mysite.co.uk/soundfilename.mp3

    Is displayed and not what I expect which follows:

    http://www.mysite.co.uk/uploads/mp3/soundfilename.mp3

    If anyone has any idea what is wrong or has encountered a similar problem I would be very grateful for some advance.

    Best…Jack

  • #2 / Jan 14, 2011 5:36pm

    Sue Crocker

    26054 posts

    Hi, Jack.

    File locations have two different paths you need to fill out.

    One of them is the system path. You’d find that by creating a whereami.php file and uploading it to your server. See: Where Am I?

    Does that help?

  • #3 / Jan 17, 2011 5:31am

    Hi Sue,

    Thanks for your advice and I’ve actually fixed the problem now. I had forgotten to update the URL of the upload directory.

    Best wishes, Jack

  • #4 / Jan 17, 2011 10:50am

    Sue Crocker

    26054 posts

    Glad things are working again. Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases