.htm or .html file will not upload

daavgov's picture

hi

i'm having a problem uploading an htm or html file, but no problem with other filetypes. i've modified the variables accordingly, but all i get with htm or html files is an Upload Error: 500

file_types = "*.htm;*.html",
(I also tried *.* for all files)

and

$extension_whitelist = array("jpg", "gif", "png", "wma", "wmv", "pdf", "wpd", "htm", "html");

any clues are appreciated...thx

gyphie's picture

Debugging

Have you tried testing your upload.php with a normal HTML upload form? If it works there but you are still getting 500 through SWFUpload you can try removing the header("HTTP/1.1 500 Internal Server Error"); line from the HandleError function at the bottom of the sample upload.php.

Now SWFUpload will believe the upload succeeded and you'll have to check the ServerData parameter in your uploadSuccess handler to see what text is being returned.

daavgov's picture

Could this be due to another

Could this be due to another Apache server setting besides those in mime.types? the mime.types file seems to be configured correctly with text/html html htm

thx

daavgov's picture

I found and fixed my

I found and fixed my problem, and i'm too embarassed to mention it...thx for your suggestion.