httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SanZ <sanx...@yahoo.it>
Subject [users@httpd] Filters.
Date Wed, 21 May 2003 17:22:04 GMT
Hello,

   i would like to ask one question, i modified a module that filters the mime inputs getting
only
the body, but the filter doesn't work.

The filter functionality isn't clear for me.
When does it will activate? when you make a ap_register_input_filter ??

The short code is below.
Thanks in Advance
SZ

static const command_rec upload_cmds[] = {
        AP_INIT_TAKE1("UploadField", set_filename, NULL, OR_ALL,
                "Set name of file upload field" ) ,
        AP_INIT_TAKE1("UploadFormSize", set_formsize, NULL, OR_ALL,
                "Set number of form fields" ) ,
        {NULL}
} ;

static void upload_hooks(apr_pool_t* p) {
ap_register_input_filter("upload-filter", upload_filter,upload_filter_init,AP_FTYPE_RESOURCE)
;
ap_hook_handler(mod_uplsper_content_handler, NULL, NULL, APR_HOOK_MIDDLE);
} ;

module AP_MODULE_DECLARE_DATA uplsper_module = {
        STANDARD20_MODULE_STUFF,
        upload_create_dir_config,
        NULL,
        NULL,
        NULL,
        upload_cmds,
        upload_hooks
} ;


______________________________________________________________________
Yahoo! Mail: 6MB di spazio gratuito, 30MB per i tuoi allegati, l'antivirus, il filtro Anti-spam
http://it.yahoo.com/mail_it/foot/?http://it.mail.yahoo.com/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message