Skip to content

Conversation

dsinibaldi77
Copy link
Contributor

@dsinibaldi77 dsinibaldi77 commented Apr 1, 2022

If database is oracle then crash:

  1. download operation
@cache.action()
def download():
    return response.download(request, dbincomugest)
  1. file upload operation:
# doc is varchar2 field
# doc_file is clob field but in define_table in model
...
Field('doc', 'upload', uploadfield='doc_file'),
Field('doc_file', 'blob'),
...
id = db.table_with_clob_field.insert(doc = db.table_with_clob_field.doc.store(item.file, item.filename),doc_file=item.file.read())

@mdipierro mdipierro merged commit 0adf8be into web2py:master May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants