A few things here. When you say searching by FTP, what do you mean? The file should be renamed on upload to a random hash, so you may not be able to detect the filename, but should be (by default) in wp-content/uploads/YYYY/MM/
.
Same size but corrupted is a good thing. It means it’s finding the file, something else is just getting in the way of serving it. Does the problem happen consistently across file types or only PPTs (testing, and have no troubling downloading PPTs)?
Last, latest version of plugin and latest version of WordPress? What other plugins are activated? Any strange caching, etc. that may be causing it.
If the site’s public, if you could either post or send me a link to a troubled file, it would be helpful to be able to look at the headers being served.
You’re not the first to describe a similar issue, and it would be good to get to the bottom of this if possible.
Thanks for the response Benjamin. Reader of your blog and fan of several of your plugins here!
FTP: I mean that I tried to find the files “directly”, not going through WP. I FTP’d to the site and browsed all uploads folders. I knew that filenames should be hashed (I saw that in a localhost test), but I didn’t find anything at all. Particularly, I didn’t see any file with ppt extension. So I have no idea where it was getting the files from.
Formats: I had the problem both with some PDF and some PPT.
Versions: both up to date.
No link, it’s an intranet.
Plugins (nothing cache-related):
Press this reloaded
Relevanssi
Sanitize Spanish filenames
Updraft
WP Mail SMTP
WPTap mobile detector
WP Document revisions
Custom post types UI
WP Use Parent Template
Executable PHP widget
Login Logout
WassUp
Wordpress Importer
WP-Print
WP Use parent template
Default Thumbnail Plus
Feedwordpress
WP Post views plus
WP-Emphasis
WP-Paginate
WP-Opensearch
CSV importer
Thanks!
So to confirm, you upload a file, but they don’t appear in your uploads folder?
You said you set the upload folder to /wp-content/uploads
… that should be the *PATH* to the folder, not the URL (e.g., /var/www/wp-content/uploads/</code.).
I have the same problem – the file looks to be there, downloads back fine, but either does not open (PDF) or shows gobbeldy gook (exel)
Sorry that I haven’t answered yet, but I removed the plugin from my site, and I would need a free while to enable it again and do the required tests. But no free whiles for a while… 🙂 Sorry, I’ll try to do that if I can find some time.
Just bringing this one back to life. I am having the same issue. Uploaded a bunch of documents previously. Approx. 10% of them appear to be corrupted, as in when you download the document. (typically .doc or .xls, they will show invalid characters.)
Now, go to upload a new version of the document and viewing the files on the server, no new files on the server under wp-content/uploads/07. I tried uploading media through the WP dashboard with success, so it doesn’t seem to be a permissions/folder issue on the uploads folder.
Latest version of WordPress and plugin.
Intranet, so not public. However, happy to do any debugging to help get this issue resolved.
Thanks Benjamin!
Hi guys,
got the same problem with doc docx and pdf files. txt files work fine.
after downloading it, word i.e. wants to convert the doc file to open it. after that only hyroglyphs are shown…
so i guess the file format gets changed for the files at least for more advanced file formats then txt.
any ideas?
thanks in advance!
Ok found the bug.
The plugin SEO Ultimate was responsible for the wrong file format after download.
There’s a setting in the plugin module “title tag rewriter” which uses output buffering by default. Changing this to the second option “use filtering” solves the described problem.
So, everybody using SEO Ultimate and having the same problem as me, please change your “title tag rewriter” settings.
bye
See also Issue #31.