Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > HTTP (WWW)

    mod_upload

    Download button

    No screenshots available
    Downloads: 514  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Nick Kew | More programs
    GPL / FREE
    April 18th, 2006, 20:43 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    mod_upload description

    mod_upload is an input filter module for multipart/form-data, as submitted from File Upload forms on the Web.

    mod_upload is an input filter module for multipart/form-data, as submitted from File Upload forms on the Web. It decodes the data, so the handler gets the file itself without the MIME encoding. Other fields from the form are provided as a table of names/values.

    A second filter, formerly mod_tmpfile, is available to store the file contents in a tempfile. This ensures that all the Form data are available when the file is processed, and is useful for handlers that need to run synchronously.

    Example:

    Consider a simple HTML file upload fragment:

    < form method="post" action="my-handler" enctype="multipart/form-data" >
    Your name: < input name="name" >
    Your email address: < input name="email" >
    < br >File: < input name="file" type="file" >
    < br >Additional comments < textarea rows=4 cols=40 name="comments" >
    < /textarea >
    < /form >

    This will generate an HTTP POST request containing an uploaded file with three additional user-supplied text fields. The data are MIME-encoded and normally the Handler has to decode them.

    upload-filter

    Using upload-filter as an input filter, the handler will be passed instead the decoded file contents. It can access the other Form data (the values of name, email and comments through a table exported by the function
    apr_table_t* mod_upload_form(request_rec* r)
    which is available to any Handler or other module that needs the data.

    Configuration:

    To insert mod_upload, use the AddInputFilter or SetInputFilter directives. For pipelined applications,
    SetInputFilter upload-filter
    or for synchronous applications, add both upload and tmpfile
    SetInputFilter tmpfile-filter;upload-filter

    mod_upload defines two further configuration directives:

    UploadField
    The name of the file upload field in the HTML form to be processed

    UploadFormSize
    The size of the table allocated for form elements other than the upload. This is advisory; the APR can handle automatic resizing of tables.

    Product's homepage

    Requirements:

    · Apache 2.x

      


    TAGS:

    upload module | Apache module | input filter module | mod_upload | Apache | module

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM