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.

Images uploaded to wrong directory

July 26, 2011 9:34am

Subscribe [3]
  • #1 / Jul 26, 2011 9:34am

    JamesBrighton

    146 posts

    I have an image upload as a field. When I print the field in a template the result is:
    http://localhost/mysite/uploads/images/image.jpg

    However the image is actually at:
    http://localhost/mysite/uploads/image.jpg

    When I go to ‘Edit File Upload Preference’ the ‘URL of Upload Directory’ is:
    http://localhost/mysite/uploads/images/

    And the ‘Server Path to Upload Directory’ is:
    C:/xampp/htdocs/mysite/uploads/images/

    Why are the images being uploaded to the wrong directory? Note, Ive migrated the site to my local environment from being live. All the images that were live work fine, its just new images that do this.

    Thanks

  • #2 / Jul 26, 2011 9:38am

    JamesBrighton

    146 posts

    Also, in my ‘File Upload Preferences’ I have 3 directorys. How does EE decide which one to put an uploaded image into?

  • #3 / Jul 26, 2011 2:04pm

    Marcus Neto

    1005 posts

    James,

    Have you verified that the paths are correct after moving the site? I usually use Deeploy Helper as it shows all of the paths in one place and also has a find/replace built in for easy updating. Verify that the paths are correct using Deeploy Helper and let me know what you find.

  • #4 / Jul 27, 2011 10:41am

    JamesBrighton

    146 posts

    Ive installed deploy helper. I dont know if everything is ok or not but under ‘File Upload Preferences (CVs)’ it looks like the url and server path dont correspond to each other.

    Here is a screenshot:
    http://www.mediafire.com/i/?ptk0tj94jbs9u0n

    When you create a new field thats a file, where do you set which upload directory it uses?

  • #5 / Jul 27, 2011 12:13pm

    Marcus Neto

    1005 posts

    James,

    Due to the information that would be contained in that image you are trying to show me I would suggest emailing it instead of posting it online. .(JavaScript must be enabled to view this email address). Normally we don’t do this but in this case I want to protect the information.

  • #6 / Jul 27, 2011 1:32pm

    Sue Crocker

    26054 posts

    Hi, James. Would a quick video on working with file directories and EE help? I just need to know which version of EE you’re using.

    See EEWiki:// HowTo Determine My EE Version

  • #7 / Jul 28, 2011 6:36am

    JamesBrighton

    146 posts

    Thanks Sue, that would be great! I think im on the latest version of EE but I wont be at my computer with the install until tomorrow to check for sure. Its defiantly version 2 not 1.

  • #8 / Jul 28, 2011 10:36am

    Sue Crocker

    26054 posts

    Sure, just let us know which one. I’d prefer to demo using 2.2.1 if possible.

  • #9 / Jul 29, 2011 8:39am

    JamesBrighton

    146 posts

    Im on v2.1.1, is it similar enough that the demo could still be in 2.2.1?

  • #10 / Jul 29, 2011 9:06am

    Sue Crocker

    26054 posts

    I did one for EE2.1.3, which should be close enough.

    http://youtu.be/ADvxoajBJZk

    Does that help?

  • #11 / Jul 29, 2011 10:09am

    JamesBrighton

    146 posts

    Thanks a lot for that Sue. If you have multiple upload directories, is it possible to specify a default directory for channels or fields?

  • #12 / Jul 29, 2011 10:26am

    Sue Crocker

    26054 posts

    Not currently. We’ve had requests for that, but it’s not available now. But you can sort of get that to work if you have content editors that only have access to one channel and one file upload area. That way they can only pick one.

  • #13 / Jul 29, 2011 10:28am

    JamesBrighton

    146 posts

    Ok. Im not sure what the initial issue was but now everything is working if I select my ‘images’ directory.
    Thanks

  • #14 / Jul 29, 2011 10:36am

    Sue Crocker

    26054 posts

    Gremlins. 😊 I blame them. 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