Lines Matching refs:filename
169 * Provides content type for filename if one of the known types (else
172 * Returns some valid contenttype for filename.
175 static const char * ContentTypeForFilename (const char *filename,
203 if(filename) { /* in case a NULL was passed in */
205 if(strlen(filename) >= strlen(ctts[i].extension)) {
206 if(strequal(filename +
207 strlen(filename) - strlen(ctts[i].extension),
267 * (as the user requests) while for files only the filename and not the
285 * storing a filename (CONTENTTYPE is optional!):
436 const char *filename = array_state?
438 if(filename) {
439 current_form->value = strdup(filename);
455 const char *filename = array_state?array_value:
460 if(filename) {
461 if((current_form = AddFormInfo(strdup(filename),
472 if(filename) {
473 current_form->value = strdup(filename);
580 const char *filename = array_state?array_value:
585 current_form->showfilename = strdup(filename);
962 char *filename;
964 filename = strdup(fullfile); /* duplicate since basename() may ruin the
966 if(!filename)
968 base = strdup(basename(filename));
970 free(filename); /* free temporary buffer */
1096 "attachment; filename=\"%s\"",
1115 "; filename=\"%s\"",