Hi I have this error:
image_data = upload.read()
AttributeError: 'unicode' object has no attribute 'read'
When i call my controllers:
The variable request.params['upload'] contains " <FileStorage: u'ir_attachment_117.jpeg' ('image/jpeg')>"
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi I have this error:
image_data = upload.read()
AttributeError: 'unicode' object has no attribute 'read'
When i call my controllers:
The variable request.params['upload'] contains " <FileStorage: u'ir_attachment_117.jpeg' ('image/jpeg')>"
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
3
Mar 24
|
15320 | ||
|
1
Aug 16
|
3783 | ||
|
1
Mar 22
|
4289 | ||
|
1
Jul 18
|
11222 | ||
|
2
Jun 18
|
19858 |