| Project: | ProjectPier |
| Version: | 0.8.8-alpha |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | phpfreak |
| Status: | open - assigned |
Jump to:
Using the "Files" tab for a project, I can upload a file, and it appears to be successful. The uploaded file appears in the list and shows the right file size.
However, attempting to download the file produces a file (with the right name) containing only a short hex string, like this:
33ed22e324ba3e57243420d71d6f7202071721b4
Expected behavior would be to download the complete file, of course. :)
I have file storage configured as "Database", not file system. This happens when I try to upload into the "documents" folder or if I don't specify a folder. I have not created any folders of my own. It happens with multiple file types (well, DOC and PDF at least). Same problem if attempting to download the initial revision of the file.
If do select content from pp088_file_repo via mysql, I can get the file out, which suggests to me that the file is being stored, but not retrieved properly.
No errors in cache/log.php
Help?
I found the problem.
Lines 424-425 of controllers/FilesControler.class.php are:
$contents = &$revision->getFileContent();
$contents = $repository_id;
That second line seems like a problem. Commenting it out solved the problem.
Oops. My bad. I was experimenting with streaming download from database.
Thanks!!! I fixed it in the release.
Hi,
I am currently testing 0.8.8-alpha, the download still having error despite commenting on the line suggested in the previous reply.
The setup is using standard configuration.
Project Pier is corrupting the Word 2010 files that I upload to the database. The line referenced in the php file above is commented out but files still can't be downloaded.