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.

Link to file generated, but cannot download "requested url...not found on this server"

January 05, 2011 2:42pm

Subscribe [5]
  • #16 / Jan 13, 2011 7:15am

    Sue Crocker

    26054 posts

    Hi, Dr. Seuss.

    See Where Am I?

    The system path to your dox folder is still off.

    Unless you wanted to make a doc folder. But in any case, it shouldn’t be the upload temp folder.

    Does that help?

  • #17 / Jan 13, 2011 10:36am

    Dr. Seuss

    58 posts

    Hi, Sue.

    The results from the PHP snippet are:

    /www/eh14584/public_html/_assets/dox/

    which I compared to the value that was previously in the server path and discovered that there was a double “/”, like so “//public_html”.  Okay, so I have replaced that value with the one from the snippet and refreshed the page, but I am still getting the error, the exact same behavior as before.

    The part about this that bugs me is that when I am selecting a file as the value of a field while making an entry, obviously EE is able to see the directory and the file to enable me to select it.  Obviously, the “re-mapped” URL path is correct, because it appears in the browser address bar as expected.  But no file comes off the server.  It is that bit of inconsistency that, quite frankly, has me stumped and wondering what is going on.

  • #18 / Jan 13, 2011 6:21pm

    Greg Salt

    3988 posts

    Hi Dr. Suess,

    Okay, we seem to be closer, but either I am confused there is something still wrong.

    I have moved the files to:

    /public_html/_assets/dox

    Now, if I test retrieve a file via the explicit path, it works.  For example:

    http://www.gettherebrand.com/_assets/dox/test_pdf_1.pdf

    However, when I am configuring file uploads for “Documents”, I set “* URL of Upload Directory” to be “http://www.gettherebrand.com/doc/”.  When expression engine renders the path to the document above, you get “http://www.gettherebrand.com/doc/test_pdf_1.pdf”.  This file returns the error “Not Found The requested URL /doc/test_pdf_1.pdf was not found on this server.”

    So, basically the re-mapping of the path does not seem to be working.

    More ideas?

    The “URL of Upload Directory” would need to be http://gettherebrand.com/_assets/dox to match your server path and not http://gettherebrand.com/doc

    Cheers

    Greg

  • #19 / Jan 13, 2011 7:12pm

    Dr. Seuss

    58 posts

    Okay, Greg, that worked.  Consider this thread closed.

    Not trying to be a jerk, but with this solution I fail to see the benefit of the “* URL of Upload Directory” field.  if it not there to re-map the URL—say for making a “short URL”—like an Apache re-write, then what is it there for?  That would be a nice feature to implement FTW.

    Thanks for the arduous troubleshooting effort.—Seuss

  • #20 / Jan 14, 2011 2:44pm

    Sue Crocker

    26054 posts

    There are two different paths need for each file upload area.

    One - the URL of upload directory is used to build a link to an image or file for html purposes, and the path to the system folder is used with internal PHP coding.

    It’s not meant to remap a URL at all, I’m sorry we didn’t communicate that with you earlier.

    Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases