Pass upload data to imap table

17 views
Skip to first unread message

Alan Etkin

unread,
Oct 20, 2013, 8:25:33 AM10/20/13
to web...@googlegroups.com
  • How does one retrieve the Payload of File + File name + Mime type  from the View (HTML Form + Upload type input field) and pass it directly to the Controller's Function (web2py DAL mail-row object)?

To extract the filename and payload see the example posted at:

http://www.web2pyslices.com/slice/show/1706/how-to-compose-a-multi-attachment-draftnormal-email-with-imapsmtp

The mime type of the file can be guessed with the stdlib mimetypes module


Reply all
Reply to author
Forward
0 new messages