281
281
Reads fields: 'path', 'data' (file upload)
283
284
path = fields.getfirst('path')
284
285
data = fields.getfirst('data')
286
287
raise ActionError("Required field missing")
287
288
path = actionpath_to_local(req, path)
290
292
# Copy the contents of file object 'data' to the path 'path'
295
298
raise ActionError("Could not write to target file")