Enctype variable in Apache?

Posted on 2005-03-02
Medium Priority
Last Modified: 2010-03-04
Hello and welcome to this question.

I'm trying to make an upload file page that will run on an apache server.  Simply put, the script I am using is in a very little known language (J, www.jsoftware.com), which is not naturally a web language.  I can essentially make it do anything I'd want to do with another fine, more popular language (say PHP), so this is not the problem.

What I need to know is the name of the variable which contains the enctype or "Content-Disposition" in the Apache console.  I'm guessing it would be right along POST_STRING, QUERY_STRING, and the like.  So far, since I never tried uploading files, the POST_STRING was simply thus:


But with enctype="multipart/form-data" in the form, POST_STRING IS:

Content-Disposition: form-data; name="THEFILE"; filename="C:\Documents and Settings\mp\Desktop\test.txt"
Content-Type: text/plain

This is the content.
Content-Disposition: form-data; name="secret"


I need to figure out if there is an enctype so that I can somehow parse through this.

The webserver is Apache 2.0.47 (an update is out of the question, unfortunately), running on Windows 2000.

Question by:Gorizo
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 51

Accepted Solution

ahoffmann earned 1500 total points
ID: 13447453
AFAIK there is no environment variable for that in apache, you need to use your languages API to query the header fields

Author Comment

ID: 13453410
Well, parsing all that wasn't pretty, but it works.  I guess I asked for the impossible and you pointed me in the correct way.  You'll get your points.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month10 days, 8 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question