@view_config(<EOL>route_name='<STR_LIT>',<EOL>accept='<STR_LIT:application/json>',<EOL>renderer='<STR_LIT>',<EOL>request_method='<STR_LIT:POST>')<EOL>def dropbox_fileupload(dropbox, request):
attachment = request.POST['<STR_LIT>']<EOL>attached = dropbox.add_attachment(attachment)<EOL>return dict(<EOL>files=[dict(<EOL>name=attached,<EOL>type=attachment.type,<EOL>)]<EOL>)<EOL>
accepts a single file upload and adds it to the dropbox as attachment