Skip navigation
Currently Being Moderated

FileExists

Jun 26, 2012 6:46 AM

 
Replies
  • Currently Being Moderated
    Jun 26, 2012 6:46 AM   in reply to Community Help

    I just learned that fileExists() also works with a URL and can validate that a remote resource exists.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 2, 2012 4:40 PM   in reply to AaronGreenlee

    fileExists always returns a false for me - even when the file and path are correct.  Anyone have any ideas on this one?

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 2, 2012 10:13 PM   in reply to Balddog4

    @Balddog4: Does the following return YES or NO for you?

     

    writeOutput(fileExists("http://upload.wikimedia.org/wikipedia/commons/thumb/3/30/Googlelogo.pn g/250px-Googlelogo.png"))

     

    Thanks,

    -Aaron

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 3, 2012 1:02 AM   in reply to Balddog4

    fileExists always returns a false for me - even when the file and path are correct.  Anyone have any ideas on this one?

     

    I suspect it's because the user the CF service is running as doesn't have permissions to see the file you are testing.

     

    Or the path actually isn't correct.

     

    What's an example of how you're using using?

     

    NB: it's bad form to ask a different question on someone else's thread.  You should start your own thread.

     

    --

    Adam

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 3, 2012 5:54 AM   in reply to Aaron Neff

    Thanks, Aaron.  It returned NOYES

     

    I did some research, and it does look like fileExists had/has a bug with only returning a False/No response.  I wasn't sure if it had been fixed or if there was a workaround.  I was curious if the original poster had success with this tag.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 3, 2012 6:10 AM   in reply to Balddog4

    I did some research, and it does look like fileExists had/has a bug with only returning a False/No response.

     

    Really?  Where did you read this?

     

    Do you mean "in general" or "when using a URL as an argument"?

     

    --

    Adam

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 3, 2012 6:11 AM   in reply to Adam Cameron.

    It could be a permissions issue.  I'll look into that.

     

    Back 15 years ago, there were only a handful on the forums.  I'm not sure when the new forum etiquettes came to be, but I was not aware that it was not appropriate to respond to a common thread.  Actually, at one point, it was encouraged on some forums so as not to have so many redundant and loose threads .  I can repost this on a new topic if preferred.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 3, 2012 6:14 AM   in reply to Balddog4

    Back 15 years ago, there were only a handful on the forums.  I'm not sure when the new forum etiquettes came to be,

     

    It's always been the case on any forum anywhere.  It's the forum equivalent of walking up to someone else's conversation and changing the subject.

     

    It's not a big issue at all, I just meant it as a reminder, but it's always been "etiquette" on any assistance forum I have encountered.

     

    --

    Adam

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 3, 2012 10:20 AM   in reply to Adam Cameron.

    Thanks for letting me know, Adam.  I was oblivous and certainly don't want to add to a forum faux paus. 

     

    I see now what it's so important.  I need to be able to reply that it was resolved, etc.  Thanks for the tip!

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 3, 2012 9:38 AM   in reply to Adam Cameron.

    It was a permissions issue.  Thanks so much, Guys!

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points