Answer the question
In order to leave comments, you need to log in
uploading files to defrom. How?
comprehend the pyramid. (and python with it)
I use the defrom module. Rather, I started using it and immediately ran into incomprehensibility. How to upload a file using defrom.
screwed the FileUploadWidget widget, but where to look for the file after submitting the form? Tell…
Answer the question
In order to leave comments, you need to log in
Here is an example
http://deformdemo.repoze.org/file/
class Schema(colander.Schema):
upload = colander.SchemaNode(
deform.FileData(),
widget=deform.widget.FileUploadWidget(tmpstore))
form.upload.fp
) and save it to disk where necessary. Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question