'))
>
> should be
>
> Field('image_file','blob'),
> Field('image_upload','upload',uploadfield= 'image_file'),
>
> or simply
>
> Field('image_upload','upload',uploadfield= Field('image_file','
#x27;,'blob'))
Where i provided a filed in the uploadfield
On Thursday, July 5, 2012 10:30:22 PM UTC-7, RCTYCO wrote:
>
> Thanks.
>
> I need to solve the problem of the file not been uploaded to the blob
> field.
>
> I believe i am doing it correctly.
>
> I defin
#x27;The server couldn\'t fulfill the request.'
> print 'Error code: ', e.code
> id =
> db.image.insert(url=url,image_uplaod=db.image.image_upload.store(response,filename=url))
> db.commit() # not sure if needed, depends on where executed
>
Thank you for the quick response.
I added the lines above : ( id =
db.image.insert(url=url,image=db.image.image_upload.store(response,filename=url))
db.commit() )
It uploaded the information (url and renamed the file) but I don't believe
it upload the image to the database.
This is what i
4 matches
Mail list logo