Author Topic: Cannot upload files in workspaces  (Read 2202 times)

gman

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Cannot upload files in workspaces
« on: August 21, 2009, 06:25:18 pm »
I upgraded to 1.5.2 and now get the following message when trying to upload a file:

Error:

Query failed with message 'Incorrect string value: '\x92s pri...' for column 'content' at row 1'

This is a very serious error. Is there a way to downgrade to 1.5.1. If file uploads do not work, OpenGoo is rendered essentially usable.


ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Cannot upload files in workspaces
« Reply #1 on: August 24, 2009, 04:08:46 pm »
To downgrade to 1.5.1 just extract the OpenGoo 1.5.1 zip file. If this doesn't solve it then the problem was not introduced in OpenGoo 1.5.2

alvarotm01

  • Administrator
  • Sr. Member
  • *****
  • Posts: 335
    • View Profile
    • Email
Re: Cannot upload files in workspaces
« Reply #2 on: August 24, 2009, 07:04:54 pm »
Hi,
The problem may be that the encoding of the file (or filename) you want to upload is not utf-8.
Try adding this code before line 91 of "/application/models/ApplicationDataObject.class.php"
Code: [Select]
if (get_class($this->manager()) == 'ProjectFiles') {
$content = utf8_encode($content);
}
please let us know if this does not work.