Docs: Attachments are corrupt
Tagged: Attachments, corrupt, docs
- This topic has 5 replies, 3 voices, and was last updated 11 years, 4 months ago by
Scott Voth.
-
AuthorPosts
-
May 27, 2014 at 9:05 pm #4763
Kalico
ParticipantFiles 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 existPermalink 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):
http://domain.org/community/docs/doc_name/?bp-attachment=FILE.xlsx
Format of link to the file in media library is:
http://domain.org/community/wp-content/uploads/2014/05/FILE.xlsxSummary:
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 11 years, 5 months ago by
Kalico. Reason: title
May 28, 2014 at 1:05 pm #4766
RayKeymasterBP 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.
We are planning CBOX v1.0.8 due on the first week of June that updates a few plugins.
One of those plugins is BP Docs. It is possible that you are running a slightly, older version.
About the hidden plugins, by default, CBOX hides the plugins we recommend from the main “Plugins” list. However, there are occasions where you might want to manually update a plugin.
To find out how you can unhide these plugins, view this article:
https://commonsinabox.org/documentation/expert-modeIf you decide to manually update BP Docs and you still run into problems, please reply back.
May 29, 2014 at 1:06 am #4769Kalico
ParticipantThanks Ray. Will it be easiest to learn of the updated CBOX via my own plugins page? or will there be an announcement somewhere I should be following?
June 20, 2014 at 3:56 pm #4847Kalico
ParticipantI updated CBOX and the fix for this issue is partial.
PDFs are now working….I can download them and they can be opened in a variety of target programs.
JPGs are not working. The same error above remains.
I did notice something else this time:
After clicking the button to add an attachment, the screen I see is blank (there are no files displayed) and there is a button to “Select Files”. When clicked, it changes color (different shades of gray) but has no obvious effect. If I drag a file onto this screen, it will upload. And after uploading, I can see all the other files that were previously attached to the doc.
I get the impression this screen was designed to allow one to select a previously uploaded file from the Media folder, but it’s not working that way.
Thanks in advance for any help with this!
June 24, 2014 at 10:29 am #4869Kalico
ParticipantHi, just checking in. I noticed that someone else on the WP forum reported corrupt file attachments. Any help/hope?
June 29, 2014 at 2:28 pm #4880Scott Voth
KeymasterHi Marci @marci
I just tested the upload process on my cbox 1.8 test site and everything worked fine for me. I was able to upload and view a jpg file and a pdf file.
From your description of the problem, it seems like your upload process might be experiencing some javascript problems/conflicts. Which browser are you using? Have you tried in other browsers?
After you click “Select Files” you should be presented with a list of your files, and you should be able to navigate to the file you want to upload.
You might want to turn on some web debugger like Firebug to see if you see any errors/clues.
Hope this helps.
-
AuthorPosts
- You must be logged in to reply to this topic.