?
Solved

Enctype variable in Apache?

Posted on 2005-03-02
2
Medium Priority
?
349 Views
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:

THEFILE=C%3A%5CDocuments+and+Settings%5Cmp%5CDesktop%5Ctest.txt&secret=xxxx

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


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

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

xxxx
-----------------------------7d59d2d2b02c8--

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.

Thanks.
0
Comment
Question by:Gorizo
[X]
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
2 Comments
 
LVL 51

Accepted Solution

by:
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
0
 

Author Comment

by:Gorizo
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.
0

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