Results 1 to 2 of 2
  1. #1
    Daniel is offline Member
    Join Date
    Jun 2007
    Posts
    91
    Rep Power
    0

    Exclamation File Upload - Single to allow the search of .txt files

    I have made a page that does upload from files to the server, but now I would like that when the client does click on button "browser" in the window search in Type of File appears only Text (*.txt) or something like that, is just to limit the search .txt files.

    Daniel:o

  2. #2
    Felissa is offline Member
    Join Date
    Jun 2007
    Posts
    95
    Rep Power
    0

    Default RE: File Upload - Single to allow the search of .txt files

    Java Code:
    Tag <INPUT> - http://www.w3schools.com/tags/tag_input.asp
    Example:

    Java Code:
    <input type="file" name="file" accept="list_of_mime_types">
    list_of_mime_types : A comma-separated list of MIME types that indicates the MIME type of the file transfer

    Java Code:
    MIME Types - http://www.w3schools.com/media/media_mimeref.asp
    Example:

    *.txt => text/plain

    Felissa:p

Similar Threads

  1. how to upload a file?
    By tommy in forum JavaServer Pages (JSP) and JSTL
    Replies: 4
    Last Post: 06-30-2008, 03:50 PM
  2. Applet File Upload
    By genette in forum Java Applets
    Replies: 2
    Last Post: 03-09-2008, 03:06 PM
  3. How to filter files in file upload using html contorl
    By deivaganesh in forum Advanced Java
    Replies: 0
    Last Post: 01-29-2008, 07:31 AM
  4. File Upload
    By ShoeNinja in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 11-09-2007, 11:09 PM
  5. How to search files with Java
    By karma in forum New To Java
    Replies: 1
    Last Post: 05-26-2007, 02:25 PM

Posting Permissions

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