473,657 Members | 2,659 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Suddenly I can't Validate by File Upload

Hi...

I've been referred to this Newsgroup by the W3C Markup Validator FAQ.

I've been happily using this Validator <http://validator.w3.or g> for the
past 18 months with great success, but suddenly I cannot get it to
"read" my HTML documents by the "Validate by File Upload" method. It
keeps giving me the following message:

Sorry, I am unable to validate this document
because its content type is text/plain, which
is not currently supported by this service.

The Content-Type field is sent by your web
server (or web browser if you use the file
upload interface) and depends on its
configuration. Commonly, web servers
will have a mapping of filename extensions
(such as ".html") to MIME Content-Type values
(such as text/html).

That you recieved {sic} this message can mean
that your server is not configured correctly, that
your file does not have the correct filename
extension, or that you are attempting to validate
a file type that we do not support yet. In the latter
case you should let us know that you need us to
support that content type (please include all
relevant details, including the URL to the standards
document defining the content type) using the
instructions on the Feedback Page.

If I upload the file and validate it by the "Validate by URL" method, it
works as it should, and if I use the WDG HTML Validator/file upload, it
also works perfectly.

The only thing which has changed on my end was that the Windows XP SP2
was installed yesterday, so I suspect that this has re-configured
something on my machine which is causing the problem with the W3C
Validator.

Any ideas on how I should proceed to get things back to normal?

Thanks...

----
- Dean Speir

Jul 23 '05 #1
8 3101
"Dean Speir" <de*******@theg unzone.com> wrote in
news:4a******** ************@ne ws4.srv.hcvlny. cv.net:
I've been happily using this Validator <http://validator.w3.or g> for the
past 18 months with great success, but suddenly I cannot get it to
"read" my HTML documents by the "Validate by File Upload" method. It
keeps giving me the following message:

Sorry, I am unable to validate this document
because its content type is text/plain, which
is not currently supported by this service. The only thing which has changed on my end was that the Windows XP SP2
was installed yesterday


Did you do a Google search before asking? Look in this
group's archives for a thread started August 14th titled
"Validation problem with Windows XP SP2", as well as other
threads. As you are posting using Outlook Express, my guess
is you are also using IE. Do yourself a favour and get
Mozilla Firefox(and some of the extensions).

--
Dave Patton
Canadian Coordinator, Degree Confluence Project
http://www.confluence.org/
My website: http://members.shaw.ca/davepatton/
Jul 23 '05 #2
Dave Patton responded:
The only thing which has changed on my end was that
the Windows XP SP2 was installed yesterday
Did you do a Google search before asking? Look in this
group's archives for a thread started August 14th titled
"Validation problem with Windows XP SP2", as well as other
threads. As you are posting using Outlook Express, my guess
is you are also using IE. Do yourself a favour and get
Mozilla Firefox(and some of the extensions).


A. - No, I did not Google first... if I'd've Google'd
(and known exactly what to ask for), I could
have saved myself a post and the opprobrium.

B. - Yes, I am using IE. Probably a sin, eh?

C. - I have Mozilla Firefox 9.1, but it does not
render my HTML/CSS properly in some
instances, and renders it properly but
differently from I.E. in other instances.
And since 89% of the traffic to the four
sites I manage use some iteration of the
last two releases of I.E., it would be
irresponsible of me to eschew that
browser.

For example, look at
http://www.westhamptonbeach.org/marlene/marlene.html and notice the two
rules... they are supposed to be identical 1 px, and display that way in
I.E. In Firefox, the lower rule displays at least 4px, while in Netscape
7.02 it's 2px.

(HRs are styled {background: transparent; text-align: center; height:
1px; border: solid #0000ff;})

But I "get the message" about the XP/SP2 validator issue, and will
contact the gnomes of Redmond forthwith and with a strong right will...
they'll undoubtedly have the bug resolved by the end of the month.

Thank you for the information...

----
- Dean Speir
Jul 23 '05 #3
In article <4a************ ********@news4. srv.hcvlny.cv.n et>,
"Dean Speir" <de*******@theg unzone.com> writes:
Sorry, I am unable to validate this document
because its content type is text/plain, which
is not currently supported by this service.
What's not clear about that? The validator doesn't have a definition
of "valid" for plain text documents. Do you?

You have to send it markup. If you upload HTML or selected XML document
types, it'll recognise and validate them.
The only thing which has changed on my end was that the Windows XP SP2
was installed yesterday,
Complain to Microshit about this new bug they've introduced in MSIE.
You could remind them that this is a close relation of the bug that
lets all the viruses in (both arise from ignoring MIME types).
Any ideas on how I should proceed to get things back to normal?


Insert Linux or BSD cdrom.

--
Nick Kew
Jul 23 '05 #4
On Thu, 26 Aug 2004 06:55:05 GMT, "Dean Speir"
<de*******@theg unzone.com> wrote:
B. - Yes, I am using IE. Probably a sin, eh?
No. Just a form of masochism.
C. - I have Mozilla Firefox 9.1, but it does not
render my HTML/CSS properly in some
instances, and renders it properly but
differently from I.E. in other instances.
And since 89% of the traffic to the four
sites I manage use some iteration of the
last two releases of I.E., it would be
irresponsible of me to eschew that
browser.
You could use Firefox for uploading to the validator.
For example, look at
http://www.westhamptonbeach.org/marlene/marlene.html and notice the two
rules... they are supposed to be identical 1 px, and display that way in
I.E. In Firefox, the lower rule displays at least 4px, while in Netscape
7.02 it's 2px.

(HRs are styled {background: transparent; text-align: center; height:
1px; border: solid #0000ff;})


What two rules? There's only one on the page. And you've specified it to
have a height of one pixel plus a double border of unspecified height,
so of course you should expect it to be at least 3px thick and quite
possibly more.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 23 '05 #5
On Thu, 26 Aug 2004 06:55:05 GMT, "Dean Speir"
<de*******@theg unzone.com> wrote:
For example, look at
http://www.westhamptonbeach.org/marlene/marlene.html and notice the two
rules... they are supposed to be identical 1 px, and display that way in
I.E. In Firefox, the lower rule displays at least 4px, while in Netscape
7.02 it's 2px.

(HRs are styled {background: transparent; text-align: center; height:
1px; border: solid #0000ff;})

BTW I answered your e-mail, but it was bounced with the message "User
unknown". If you'd like the answer, you'd better let me have a valid
e-mail address ...

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 23 '05 #6
Dean Speir wrote:
C.*-*I*have*Mozilla *Firefox*9.1,


No such version exists yet. Maybe you mean 0.91?

--
Shawn K. Quinn
Jul 23 '05 #7
On Fri, 27 Aug 2004 20:20:33 +0200, Stephen Poley
<sb************ ******@xs4all.n l> wrote:
On Thu, 26 Aug 2004 06:55:05 GMT, "Dean Speir"
<de*******@the gunzone.com> wrote:
For example, look at
http://www.westhamptonbeach.org/marlene/marlene.html and notice the two
rules... they are supposed to be identical 1 px, and display that way in
I.E. In Firefox, the lower rule displays at least 4px, while in Netscape
7.02 it's 2px.
BTW I answered your e-mail, but it was bounced with the message "User
unknown". If you'd like the answer, you'd better let me have a valid
e-mail address ...


Still couldn't get through - dunno what the problem is. Guess I post my
answer here - which is probably where it should have been in the first
place ...

------------

At 17:38 26-08-2004 -0400, you wrote:
Thank you for the response, Stephen, but you have thoroughly confused me
with the following:
For example, look at
http://www.westhamptonbeach.org/marlene/marlene.html
and notice the tworules... they are supposed to be identical
1 px, and display that way in I.E. In Firefox, the lower rule
I.E. In Firefox, the lower rule displays at least 4px, while in
Netscape 7.02 it's 2px.(HRs are styled {background: transparent; text-align: center;
height:1px ; border: solid #0000ff;})
What two rules? There's only one on the page.
Ah, yes, there is but one <HR> on the page (the lower one), but the "upper
one" is styled as a DIV bottom border:
border-bottom: solid 1px #0000ff;

Right, but a rule and a border are two different things. A horizontal
rule (<HR>) is an HTML element, and will for example appear even when
CSS is disabled. It has its own height and (optionally) its own borders.

If you want two lines to appear the same way on the page, they need to
be marked up in the same way: either both as HR elements or both as
borders of other elements (P or DIV, say) of the same class.
And you've specified it to have a height of one
pixel plus a double border of unspecified height,
so of course you should expect it to be at least
3px thick and quite possibly more.


This is the part I'm missing... in what manner do I specify "a double
border?"


If you specify border-bottom, as you say above, then it's a single
border. But in your post you gave "border: solid #0000ff" for the HR,
which specifies a border both top and bottom (and also right and left,
though with a 1px-high element that's not so obvious) at whatever
default thickness a particular browser happens to offer. If that default
is 2px, then you have 2px border-top + 1px element height + 2px
border-bottom = 5px in total.

I'm really not sure why IE makes the two look the same - I suspect an IE
bug that just happened to produce what you wanted.

(I've just been wrestling with another IE bug today - it put spurious
extra white space between two elements. Entirely by chance - I
accidentally added a border to the wrong element - I discovered that I
could make the bug go away by putting a 1px border around a third
element in the same colour as the background. That's IE for you.)
Obviously I have much to learn about CSS, but this was something on which I
thought I'd gotten a handle.


It does take a bit of getting used to. One of the key things is to
remember is that it is in principle optional. It's quite useful to
switch off CSS (in a browser where this is easy, such as Opera - I
believe this is also true of Firefox) and check the result: it will
often help to reveal areas where ones thinking has gone awry. And
generally speaking Mozilla or Firefox are much more reliable about
displaying things correctly: I'd use them or Opera while developing a
page, and then fix the worst IE problems at the end.

Hope this helps,
--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 23 '05 #8
Shawn K. Quinn <sk*****@xeviou s.kicks-ass.net> advises...
C. - I have Mozilla Firefox 9.1,
No such version exists yet. Maybe you mean 0.91?


Actually, it is "Firefox/0.9.1" as cut 'n' pasted from the "About...."

Please excuse my less than precise shortform.

----
- Dean Speir

Jul 23 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
3204
by: Simon | last post by:
I would like to create a very basic file upload add image form to add to my web site and to keep them in a "tmp" directory within my web hosting file manager once uploaded. I understand the basic html for the form and the basic php scripting but the fine details ie method post etc needs help also at this stage I dont want to involve mysql data base. were should I start.
7
1606
by: fingermark | last post by:
I'm writing an upload script and would like to know what is the safest way to validate a file type that is being uploaded to a server? I am accepting just bmp, jpg, png, and gif. Here are is what I have come accross: $_FILES - I heard this is not safe $imginfo = getimagesize($filename); - I heard this is safer
12
1731
by: melanieab | last post by:
Hi, I have a button that, when clicked, saves all the info entered. It worked fine until suddenly it didn't, and I have no idea why. I get the error An unhandled exception of type 'System.Xml.XmlException' occurred in system.xml.dll Additional information: System error. I found that this sometimes happens when there's some unrecognized character, so I even started with a new xml file, but it still won't work. It yells at me when I...
6
2747
by: ad | last post by:
How can we assign file extension using FileUpload?
18
4335
by: Jen | last post by:
I'm using Microsoft's own VB.NET FTP Example: http://support.microsoft.com/default.aspx?scid=kb;en-us;832679 I can get the program to create directories, change directories, etc., but I can't get it to upload a file to the FTP server. I just get a "Cannot connect to remote server" error after this TRY: s = New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
2
3429
by: mark | last post by:
How do I detect that a particular form element is a file upload or if the file upload has worked? In the Python cgi module documentation I found suggested code... form = cgi.FieldStorage() fileitem = form if fileitem.file: # It's an uploaded file; count lines
0
1209
by: IkBenHet | last post by:
Hello, I use this script to upload image files to a folder on a IIS6 server: ******************* START UPLOAD.ASPX FILE ********************** <%@ Page Language="VB" Debug="true" %>
6
4866
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of the html page controls the form fields that are required. It doesn't function like it's supposed to and I can leave all the fields blank and it still submits the form. Also I can't get it to transfer the file in the upload section. The file name...
4
2957
by: henribaeyens | last post by:
Hello, I have this question that hopefully some of you guys can answer. So I use the usual mechanism: display form, enter data, browse for file, validate, upload if no errors. Well, something is not working when I try to upload a flv file. For starters, I print out the $_post and $_files arrays and I see that if I browsed for, say, a wmv video then those arrays contain all the needed data. If I browse for a flv, however, both arrays...
0
8385
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8502
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8602
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7316
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.