Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions functions/http/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ def parse_multipart(request):
# This code will process each file uploaded
files = request.files.to_dict()
for file_name, file in files.items():
# Note: GCF may not persist saved files across invocations.
# Persistent files must be kept in other locations
# (such as Cloud Storage buckets).
file.save(get_file_path(file_name))
print('Processed file: %s' % file_name)

Expand Down