Limiting Browse Directory in Upload

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Limiting Browse Directory in Upload

    I have a major problem with file upload, i need to restrict the directory from
    which a user who clicks the browse button (using input tag file type) can pick
    a file. User should be taken straight to the directory on a net work to pick
    the file, he should not be able to browse the network. Pls how can i achieve
    this in coldfusion?, URGENT

    onflash Guest

  2. Similar Questions and Discussions

    1. Upload files do different directory
      As she uploads a linked file from her computer, I need a user to upload downloadable PDFs to a directory other than the default "documents"...
    2. #39407 [NEW]: Swapped Upload and Session Directory
      From: eoghan at loggedin dot com Operating system: XP SP2 PHP version: 5.2.0 PHP Bug Type: IIS related Bug description: ...
    3. Limiting upload file size!
      Hi, I am using PERSIST upload which uploads an Image in a multipart form. Is it possible to display an error message and not sumbit an image that...
    4. Upload directory and contents from browers
      Is it possible to updoad a directory and its contents from a browser to server...i was reading up on cfftp and was told its only for server to...
    5. Limiting access to upload area
      The Why: I'm in the process of creating a Linux+Apache+PHP website with a public area and an admin area for configuration and updates. The What:...
  3. #2

    Default Re: Limiting Browse Directory in Upload

    onflash wrote:
    > I have a major problem with file upload, i need to restrict the directory from
    > which a user who clicks the browse button (using input tag file type) can pick
    > a file. User should be taken straight to the directory on a net work to pick
    > the file, he should not be able to browse the network. Pls how can i achieve
    > this in coldfusion?, URGENT
    >
    Because the file input box on the client side is not writable (for
    security reasons) you won't be able to do this from the CF side of
    things. You could of course limit their ability to access certain
    directories on the network based on their network login, but that would
    all be handled on the network security side of things.

    Matt

    --
    Matt Woodward
    Team Macromedia - ColdFusion
    mpwoodward *TMM* Guest

  4. #3

    Default Re: Limiting Browse Directory in Upload

    Thanks, but are there no CFX tags (java or c++) available that can handle such ?
    onflash Guest

  5. #4

    Default Re: Limiting Browse Directory in Upload

    Thanks, but are there no CFX extensions (java or c++) available that can handle such ?
    onflash Guest

  6. #5

    Default Re: Limiting Browse Directory in Upload

    actually i participated in a thread about this a month or so ago. you might try jupload ([url]http://jupload.biz/[/url]) if java applets are acceptable.

    PaulH Guest

  7. #6

    Default Re: Limiting Browse Directory in Upload

    onflash wrote:
    > Thanks, but are there no CFX extensions (java or c++) available that can handle such ?
    This is a limitation of the browser--it's not a server-side technology
    issue. You *might* be able to write an Active-X control that could do
    this (on a PC in IE only mind you) or possibly a signed Java applet
    (because out of the box a Java applet is a lot more locked down than
    Active-X) that would do something along these lines, but that obviously
    can get pretty complex pretty quickly and relies on the user have the
    appropriate browser technologies installed. Unfortunately I'm afraid
    you're a bit stuck but I'll be curious to see if anyone has any other
    suggestions.

    --
    Matt Woodward
    Team Macromedia - ColdFusion
    mpwoodward *TMM* Guest

  8. #7

    Default Re: Limiting Browse Directory in Upload

    PaulH wrote:
    > actually i participated in a thread about this a month or so ago. you might try jupload ([url]http://jupload.biz/[/url]) if java applets are acceptable.
    >
    Thanks Paul--I responded before I read your suggestion. Great to know!

    Matt

    --
    Matt Woodward
    Team Macromedia - ColdFusion
    mpwoodward *TMM* Guest

  9. #8

    Default Re: Limiting Browse Directory in Upload

    Onflash, If the directory is known and limited, you can achieve the desired
    result by using cfdirectory to present a list of files and then using cffile to
    'upload' it. You will need to run coldfusion under a user account (on a
    windows server) -- not the default 'local system'. And, that account will
    need to have read permission on the network share.

    MikerRoo Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139