310
314
"""Writes data to one or more files in a directory, overwriting them if
317
Reads fields: 'path', 'data' (file upload, multiple), 'unpack'
316
319
# Important: Data is "None" if the file submitted is empty.
317
320
path = fields.getfirst('path')
318
321
data = fields.getlist('data')
320
328
raise ActionError("Required field missing")