Supportnet Computer
Planet of Tech

Supportnet / Forum / Webseiten/HTML

Datei auf Server löschen geht nicht und Probleme mit XHTML





Frage

Hallo und guten katerfreien Morgen, mein Problem: Habe eine Datei auf mein Webspace hochgeladen und diese lässt sich jetzt leider nicht mehr löschen. Ich vermute es liegt daran, dass sich Leerzeichen im Namen befinden, denn ich kriege in der Fehlermeldung Nur das erste Wort angezeigt. Er sagt mir, dass der Status der Datei nicht erkannt werden konnte. Das zweite Problem: Ich möchte meine index.html bei w3.org validieren lassen, aber bekomme folgende meldung: 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 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. Was kann ich nun ändern? Vielen Gruß daniel

Antwort 1 von daneil

Nachtrag:

Kann ich den MIME-Typ in der DAtei angeben?

Antwort 2 von rfb

den Datei-Typ, verwendete Sprache und Zeichensatz kannst und solltest du z.B. so im Dateianfang angeben:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="de">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
...

(hier für HTML 4.01 transitional)

Aber das wird das Problem kaum lösen, wenn dein Server die index.html als "text/plain" erklärt.
Wie schon in der Fehlermeldung angegeben solltest du das was an der Serverkonfiguration tun

z.B. mit der Zeile
 AddType text/html .html .htm

in der ".htaccess"-Datei

Antwort 3 von daneil

Hm, das lustige ist ja, dass ich die Datei gar nicht vom Webspace aus validieren lasse, sondern lokal von meiner Festplatte. Ich will ja erst die Richtigkeit überprüfen, bevor ich sie hochlade!

Kann oder muss ich da was in Windows ändern? Oder bleibt mir keine andere Wahl als sie hochzuladen und dann zu testen?

Ich möchte kostenlos eine Frage an die Mitglieder stellen:


Ähnliche Themen:


Suche in allen vorhandenen Beiträgen: