Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 495867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:37:55+00:00 2026-05-13T05:37:55+00:00

I have a requirement, which says, If file exists and is not readable then

  • 0

I have a requirement, which says,

If file exists and is not readable then Update in DB with 
 file path and some Status.

Is it possible to Have File Exists and is not readable?

Is Yes, How to identify through coldfusion such type of files,
I know we can identify if it is exists or not, but i wanted to know, how to identify If it is readable or no?

I am using Windows server and Coldfusion 8

Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T05:37:56+00:00Added an answer on May 13, 2026 at 5:37 am

    By using GetFileInfo(path) you can get the size of the file and whether or not read and write permissions are enabled. It will also return the ‘type’, but it’s simply ‘file’ vs ‘folder’, not mime-type.

    Example:

    <cfset test = GetFileInfo(myFilePath)>
    <cfdump var="#test#">
    

    Example in use:

    <!--- Check if file exists and is not readable --->
    <cfif fileExists(myFilePath) AND NOT GetFileInfo(myFilePath).canRead>
        <!--- then Update in DB with file path and some Status --->
    </cfif>
    

    If your requirement assumes that you’re validating the file type and not just the ability to open the file, then you will need to update your question to list the file types you must test for so that we can help you out with that part. Some types can be validated by Coldfusion, others may require some Java.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a requirement which says I have to create only once class file
I have a requirement for which I do not know if NL can do
I have a requirement which sounds like kind of simple but hard to implement
Good day, I have a requirement which i need to include a layout (actually
I have a unique requirement which I need to meet to with sitecore, and
I have a data storage requirement which is an excellent candidate for single instance
I have requirement like, suppose I have a 'property' table which has 'ListingKey' field
I have a requirement to design an application which notifies/publishes, its subsystems to send
I have a requirement to design a Web Application which acts as a Facade
I have a requirement to create a windows form control which has to detect

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.