Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

Getting attributes from uploading image file

By
Leo Guggenberger
on 1/7/16, 3:19 AM 480 views

In a custom module I'm uploading an image file to the database. Now I want to get some attribtues from the upload file, while the image file is uploading to odoo and save this attributes in the database. To get the filename I use following code in the form.view:

<field name="image" filename="name"/>

With the parameter filename="name" the filename from the image file is saved into the database field name. This works fine.

My question is now, how can I get other attributes from the uploading image file? For example I want to get the recording date, resolution, image size ... Has anybody an idea how to get this attributes from the uploding image file to save this information in the database record?

Many Thanks!


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 1/7/16, 3:19 AM
Seen: 480 times
Last updated: 1/7/16, 4:14 AM