get_headers mis-reporting file information
-
Nice plugin! One issue I discovered is when you call get_headers in the FileSizeOf function in functions.php, the Content-Length and Content-Type are misreported for file names (on Windows OS) that have spaces in them. And the HTTP response code is 404 rather than 200. Renaming the file to something without spaces and re-uploading solves the problem.
Just an FYI. You might want to account for this when the file information is being generated to the page.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘get_headers mis-reporting file information’ is closed to new replies.