Files attached to Docs are not making it through the upload process in a format that can be read by their respective default programs. This has been true for .xlsx and .jpg files so far.
An end user created a doc, then added a file attachment. When the attachment was tested, it seemed to download just fine and file size appears to be about right. But when opened, we get an error message from the target program saying the file is not formatted properly, or is corrupt. Message varies with the program.
I’ve had the same results with .xslx and .jpeg files
- Server is Apache on AWS.
- WP 3.9
- BP and Docs were installed by me as individual programs, and then I installed CBOX, which has now hidden when version of those plugins I have, but I assume it’s the most current, since CBOX is up to date.
Based on this thread, I tested by uploading a .xlsx file via the Media upload in WordPress. That file was fine. I downloaded it and opened it without issue.
Tried taking that test a step further:
– uploaded a file in admin (media >> library)
– downloaded and opened, it’s just fine
– under media >> library I chose to “attach” the file to a doc
– went to doc on the frontend, attachment is displayed in the list
– tried to open attachment from the link on the doc page, got an error message: file does not exist
Permalink to file shows a page with just the download link on it. Download link works: file exists and is not corrupt.
Format of download link is (same as the format of the link to the file that was uploaded from the frontend):
Format of link to the file in media library is:
When file is uploaded on the wp backend, the file is good — but when attached to a doc, it “doesn’t exist”.
When a file is uploaded from the Docs interface, it can be downloaded (and appears to have the correct file size) but it’s read as “corrupt” by it’s associated program.
I tried changing some file permissions (made bp-docs 777) but to no avail. I have considered that there may be ownership issues as well, but I’m just not sure where to start with a fix.
I sure hope someone can help!
This topic was modified 8 years, 10 months ago by Kalico. Reason: title